author | drw <drw> | 2005-03-03 20:20:34 (UTC) |
---|---|---|
committer | drw <drw> | 2005-03-03 20:20:34 (UTC) |
commit | 585c9fe0efbc0cf4037a79cac3b22ac38c08fec2 (patch) (side-by-side diff) | |
tree | 1c95831e28d9df17861a63ee8f8ae8fcfcbe7cb5 | |
parent | 8f3a393c01f4fe88023c2dcf870ffa2061030f9e (diff) | |
download | opie-585c9fe0efbc0cf4037a79cac3b22ac38c08fec2.zip opie-585c9fe0efbc0cf4037a79cac3b22ac38c08fec2.tar.gz opie-585c9fe0efbc0cf4037a79cac3b22ac38c08fec2.tar.bz2 |
Scale icons appropriately
-rw-r--r-- | noncore/apps/dagger/configuredlg.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/apps/dagger/configuredlg.cpp b/noncore/apps/dagger/configuredlg.cpp index 535659d..42bc6da 100644 --- a/noncore/apps/dagger/configuredlg.cpp +++ b/noncore/apps/dagger/configuredlg.cpp @@ -22,70 +22,72 @@ file; see the file COPYING. If not, write to the Free Software Foundation, Inc., #include <qpe/resource.h> #include <qlabel.h> #include <qlayout.h> #include <qpushbutton.h> #include <qvbuttongroup.h> #include <qwhatsthis.h> ConfigureDlg::ConfigureDlg( QWidget *parent, const QString &swordPath, bool alwaysOpenNew, int numVerses, bool disableBlanking, int copyFormat, const QFont *font ) : QDialog( parent, QString::null, true, WStyle_ContextHelp ) , m_tabs( this ) { setCaption( tr( "Configure Dagger" ) ); QVBoxLayout *layout = new QVBoxLayout( this ); layout->setMargin( 4 ); layout->addWidget( &m_tabs ); // General tab QWidget *widget = new QWidget( this ); QGridLayout *grid = new QGridLayout( widget, 1, 2, 4, 2 ); grid->setRowStretch( 9, 5 ); grid->setColStretch( 0, 2 ); QLabel *label = new QLabel( tr( "Path where Sword texts are located:" ), widget ); label->setAlignment( Qt::AlignLeft | Qt::AlignTop | Qt::WordBreak ); QWhatsThis::add( label, tr( "Enter the path where the Sword modules (Bible texts, commentaries, etc.) can be found. This path should contain either the 'mods.conf' file or 'mods.d' sub-directory." ) ); grid->addMultiCellWidget( label, 0, 0, 0, 1 ); m_swordPath = new QLineEdit( swordPath, widget ); QWhatsThis::add( m_swordPath, tr( "Enter the path where the Sword texts (Bibles, commentaries, etc.) can be found. This path should contain either the 'mods.conf' file or 'mods.d' sub-directory." ) ); grid->addWidget( m_swordPath, 1, 0 ); - QPushButton *btn = new QPushButton( Resource::loadPixmap( "folder" ), QString::null, widget ); + QPixmap pic; + pic.convertFromImage( Resource::loadImage( "folder" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + QPushButton *btn = new QPushButton( pic, QString::null, widget ); btn->setMaximumWidth( btn->height() ); QWhatsThis::add( btn, tr( "Tap here to select the path where the Sword texts (Bibles, commentaries, etc.) can be found. This path should contain either the 'mods.conf' file or 'mods.d' sub-directory." ) ); connect( btn, SIGNAL(clicked()), this, SLOT(slotSelectSwordPath()) ); grid->addWidget( btn, 1, 1 ); - + label = new QLabel( tr( "(Note: Dagger must be restarted for this option to take affect.)" ), widget ); label->setAlignment( Qt::AlignHCenter | Qt::AlignTop | Qt::WordBreak ); QWhatsThis::add( label, tr( "Enter the path where the Sword modules (Bible texts, commentaries, etc.) can be found. This path should contain either the 'mods.conf' file or 'mods.d' sub-directory." ) ); grid->addMultiCellWidget( label, 2, 2, 0, 1 ); grid->addRowSpacing( 3, 15 ); m_alwaysOpenNew = new QCheckBox( tr( "Always open texts in new window?" ), widget ); m_alwaysOpenNew->setChecked( alwaysOpenNew ); QWhatsThis::add( m_alwaysOpenNew, tr( "Tap here to always open texts in a new window. If this option is not selected, only one copy of a Sword text will be opened." ) ); grid->addMultiCellWidget( m_alwaysOpenNew, 4, 4, 0, 1 ); grid->addRowSpacing( 5, 15 ); label = new QLabel( tr( "Number of verses to display at a time:" ), widget ); label->setAlignment( Qt::AlignLeft | Qt::AlignTop | Qt::WordBreak ); QWhatsThis::add( label, tr( "Enter the number of verses to display at a time. This also affects how far the scroll to previous/next page buttons on the Navigation bar scroll." ) ); grid->addWidget( label, 6, 0 ); m_numVerses = new QSpinBox( 1, 20, 1, widget ); m_numVerses->setValue( numVerses ); QWhatsThis::add( m_numVerses, tr( "Enter the number of verses to display at a time. This also affects how far the scroll to previous/next page buttons on the Navigation bar scroll." ) ); grid->addWidget( m_numVerses, 6, 1 ); grid->addRowSpacing( 7, 15 ); m_disableScreenBlank = new QCheckBox( tr( "Disable automatic screen power-down?" ), widget ); m_disableScreenBlank->setChecked( disableBlanking ); QWhatsThis::add( m_disableScreenBlank, tr( "Tap here to disable Opie's automatic power management feature which will dim and turn off the screen after a specified time. This will only be effective while Dagger is running." ) ); grid->addMultiCellWidget( m_disableScreenBlank, 8, 8, 0, 1 ); m_tabs.addTab( widget, "SettingsIcon", tr( "General" ) ); |