author | harlekin <harlekin> | 2003-03-08 22:19:44 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-03-08 22:19:44 (UTC) |
commit | 1d96fca5d80a2e7e96f2bd28168175a6e5c5c04a (patch) (side-by-side diff) | |
tree | 00ba4dd57941d11a2592e024cb76e71b9b45e6cf /core/pim/datebook/datebookdayheaderimpl.cpp | |
parent | 6d0502893df34cc9918a3848133cb8b581e127cc (diff) | |
download | opie-1d96fca5d80a2e7e96f2bd28168175a6e5c5c04a.zip opie-1d96fca5d80a2e7e96f2bd28168175a6e5c5c04a.tar.gz opie-1d96fca5d80a2e7e96f2bd28168175a6e5c5c04a.tar.bz2 |
use icons from inline instead of inlining some icons in the ui file
Diffstat (limited to 'core/pim/datebook/datebookdayheaderimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookdayheaderimpl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/pim/datebook/datebookdayheaderimpl.cpp b/core/pim/datebook/datebookdayheaderimpl.cpp index fbcb3d2..7d77153 100644 --- a/core/pim/datebook/datebookdayheaderimpl.cpp +++ b/core/pim/datebook/datebookdayheaderimpl.cpp @@ -1,70 +1,75 @@ /********************************************************************** ** Copyright (C) 2000 Trolltech AS. All rights reserved. ** ** This file is part of Qtopia Environment. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #include "datebookdayheaderimpl.h" #include <qpe/datebookmonth.h> +#include <qpe/resource.h> #include <qpe/timestring.h> #include <qbuttongroup.h> #include <qpopupmenu.h> #include <qstringlist.h> #include <qtimer.h> #include <qtoolbutton.h> + /* * Constructs a DateBookDayHeader which is a child of 'parent', with the * name 'name' and widget flags set to 'f' * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ DateBookDayHeader::DateBookDayHeader( bool useMonday, QWidget* parent, const char* name ) : DateBookDayHeaderBase( parent, name ), bUseMonday( useMonday ) { connect(date,SIGNAL(pressed()),this,SLOT(pickDate())); setupNames(); + forward->setPixmap( Resource::loadPixmap( "forward" ) ); + back->setPixmap( Resource::loadPixmap( "back" ) ); + setBackgroundMode( PaletteButton ); grpDays->setBackgroundMode( PaletteButton ); } /* * Destroys the object and frees any allocated resources */ DateBookDayHeader::~DateBookDayHeader() { // no need to delete child widgets, Qt does it all for us } void DateBookDayHeader::setStartOfWeek( bool onMonday ) { bUseMonday = onMonday; setupNames(); setDate( currDate.year(), currDate.month(), currDate.day() ); } void DateBookDayHeader::setupNames() { if ( bUseMonday ) { cmdDay1->setText( DateBookDayHeaderBase::tr("Monday").left(1) ); cmdDay2->setText( DateBookDayHeaderBase::tr("Tuesday").left(1) ); |