author | drw <drw> | 2005-04-28 23:59:32 (UTC) |
---|---|---|
committer | drw <drw> | 2005-04-28 23:59:32 (UTC) |
commit | c1cab57555a395c9da678b92f492779506421386 (patch) (side-by-side diff) | |
tree | 5f0ae50c0753cbf2593d5ab70d979dcf8d00062e | |
parent | d80fe3c758c34c03b8d99e7a51101933f178d7e6 (diff) | |
download | opie-c1cab57555a395c9da678b92f492779506421386.zip opie-c1cab57555a395c9da678b92f492779506421386.tar.gz opie-c1cab57555a395c9da678b92f492779506421386.tar.bz2 |
Should have make these icons SmallIcon sized in the 1st place
-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index 4fa9253..b4734a4 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp @@ -56,112 +56,112 @@ AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name, : Opie::OPimMainWindow( "Addressbook", "Contacts", tr( "Contact" ), "AddressBook", parent, name, WType_TopLevel | WStyle_ContextHelp ), abEditor(0l), syncing(false) { setCaption( tr( "Contacts" ) ); isLoading = true; m_config.load(); // Create Views m_listContainer = new QWidget( this ); QVBoxLayout *vb = new QVBoxLayout( m_listContainer ); m_abView = new AbView( m_listContainer, m_config.orderList() ); vb->addWidget( m_abView ); connect( m_abView, SIGNAL(signalViewSwitched(int)), this, SLOT(slotViewSwitched(int)) ); QObject::connect( m_abView, SIGNAL(signalNotFound()), this, SLOT(slotNotFound()) ); // Letter Picker pLabel = new LetterPicker( m_listContainer ); connect(pLabel, SIGNAL(letterClicked(char)), this, SLOT(slotSetLetter(char))); connect(m_abView, SIGNAL(signalClearLetterPicker()), pLabel, SLOT(clear()) ); vb->addWidget( pLabel ); // Quick search bar m_searchBar = new OFloatBar( "Search", this, QMainWindow::Top, true ); m_searchBar->setHorizontalStretchable( true ); m_searchBar->hide(); m_searchEdit = new QLineEdit( m_searchBar, "m_searchEdit" ); m_searchBar->setStretchableWidget( m_searchEdit ); connect( m_searchEdit, SIGNAL(returnPressed()), this, SLOT(slotFind()) ); QAction *a = new QAction( tr( "Start Search" ), Opie::Core::OResource::loadPixmap( "find", Opie::Core::OResource::SmallIcon ), QString::null, 0, this, 0 ); connect( a, SIGNAL(activated()), this, SLOT(slotFind()) ); a->addTo( m_searchBar ); // Insert Contact menu items QActionGroup *items = new QActionGroup( this, QString::null, false ); m_actionMail = new QAction( tr( "Write Mail To" ), - Opie::Core::OResource::loadPixmap( "addressbook/sendmail" ), + Opie::Core::OResource::loadPixmap( "addressbook/sendmail", Opie::Core::OResource::SmallIcon ), QString::null, 0, items, 0 ); connect( m_actionMail, SIGNAL(activated()), this, SLOT(writeMail()) ); a = new QAction( tr("Import vCard"), - Opie::Core::OResource::loadPixmap( "addressbook/fileimport" ), + Opie::Core::OResource::loadPixmap( "addressbook/fileimport", Opie::Core::OResource::SmallIcon ), QString::null, 0, items, 0 ); connect( a, SIGNAL(activated()), this, SLOT(importvCard()) ); a = new QAction( tr("Export vCard"), - Opie::Core::OResource::loadPixmap( "addressbook/fileexport" ), + Opie::Core::OResource::loadPixmap( "addressbook/fileexport", Opie::Core::OResource::SmallIcon ), QString::null, 0, items, 0 ); connect( a, SIGNAL(activated()), this, SLOT(exportvCard()) ); m_actionPersonal = new QAction( tr("My Personal Details"), - Opie::Core::OResource::loadPixmap( "addressbook/identity" ), + Opie::Core::OResource::loadPixmap( "addressbook/identity", Opie::Core::OResource::SmallIcon ), QString::null, 0, items, 0 , true ); connect( m_actionPersonal, SIGNAL(activated()), this, SLOT(slotPersonalView()) ); insertItemMenuItems( items ); // Insert View menu items items = new QActionGroup( this, QString::null, false ); a = new QAction( tr("Show quick search bar"),QString::null, 0, items, 0, true ); connect( a, SIGNAL(toggled(bool)), this, SLOT(slotShowFind(bool)) ); insertViewMenuItems( items ); // Fontsize defaultFont = new QFont( m_abView->font() ); slotSetFont(m_config.fontSize()); m_curFontSize = m_config.fontSize(); setCentralWidget(m_listContainer); // odebug << "adressbook contrsuction: t=" << t.elapsed() << oendl; connect( qApp, SIGNAL(flush()), this, SLOT(flush()) ); connect( qApp, SIGNAL(reload()), this, SLOT(reload()) ); connect( qApp, SIGNAL(appMessage(const QCString&,const QByteArray&)), this, SLOT(appMessage(const QCString&,const QByteArray&)) ); isLoading = false; // Handle category selection setViewCategory( m_config.category() ); m_abView->setShowByCategory( m_config.category() ); connect( this, SIGNAL(categorySelected(const QString&)), this, SLOT(slotSetCategory(const QString&)) ); } void AddressbookWindow::slotSetFont( int size ) { odebug << "void AddressbookWindow::slotSetFont( " << size << " )" << oendl; if (size > 2 || size < 0) size = 1; m_config.setFontSize( size ); QFont *currentFont; switch (size) { case 0: |