Diffstat (limited to 'noncore/apps/dagger/configuredlg.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/dagger/configuredlg.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/noncore/apps/dagger/configuredlg.cpp b/noncore/apps/dagger/configuredlg.cpp index 42bc6da..791eeb1 100644 --- a/noncore/apps/dagger/configuredlg.cpp +++ b/noncore/apps/dagger/configuredlg.cpp | |||
@@ -15,14 +15,13 @@ file; see the file COPYING. If not, write to the Free Software Foundation, Inc., | |||
15 | 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 15 | 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include "configuredlg.h" | 18 | #include "configuredlg.h" |
19 | 19 | ||
20 | #include <opie2/ofiledialog.h> | 20 | #include <opie2/ofiledialog.h> |
21 | 21 | #include <opie2/oresource.h> | |
22 | #include <qpe/resource.h> | ||
23 | 22 | ||
24 | #include <qlabel.h> | 23 | #include <qlabel.h> |
25 | #include <qlayout.h> | 24 | #include <qlayout.h> |
26 | #include <qpushbutton.h> | 25 | #include <qpushbutton.h> |
27 | #include <qvbuttongroup.h> | 26 | #include <qvbuttongroup.h> |
28 | #include <qwhatsthis.h> | 27 | #include <qwhatsthis.h> |
@@ -48,15 +47,14 @@ ConfigureDlg::ConfigureDlg( QWidget *parent, const QString &swordPath, bool alwa | |||
48 | label->setAlignment( Qt::AlignLeft | Qt::AlignTop | Qt::WordBreak ); | 47 | label->setAlignment( Qt::AlignLeft | Qt::AlignTop | Qt::WordBreak ); |
49 | 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." ) ); | 48 | 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." ) ); |
50 | grid->addMultiCellWidget( label, 0, 0, 0, 1 ); | 49 | grid->addMultiCellWidget( label, 0, 0, 0, 1 ); |
51 | m_swordPath = new QLineEdit( swordPath, widget ); | 50 | m_swordPath = new QLineEdit( swordPath, widget ); |
52 | 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." ) ); | 51 | 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." ) ); |
53 | grid->addWidget( m_swordPath, 1, 0 ); | 52 | grid->addWidget( m_swordPath, 1, 0 ); |
54 | QPixmap pic; | 53 | QPushButton *btn = new QPushButton( Opie::Core::OResource::loadPixmap( "folder", Opie::Core::OResource::SmallIcon ), |
55 | pic.convertFromImage( Resource::loadImage( "folder" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | 54 | QString::null, widget ); |
56 | QPushButton *btn = new QPushButton( pic, QString::null, widget ); | ||
57 | btn->setMaximumWidth( btn->height() ); | 55 | btn->setMaximumWidth( btn->height() ); |
58 | 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." ) ); | 56 | 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." ) ); |
59 | connect( btn, SIGNAL(clicked()), this, SLOT(slotSelectSwordPath()) ); | 57 | connect( btn, SIGNAL(clicked()), this, SLOT(slotSelectSwordPath()) ); |
60 | grid->addWidget( btn, 1, 1 ); | 58 | grid->addWidget( btn, 1, 1 ); |
61 | 59 | ||
62 | label = new QLabel( tr( "(Note: Dagger must be restarted for this option to take affect.)" ), widget ); | 60 | label = new QLabel( tr( "(Note: Dagger must be restarted for this option to take affect.)" ), widget ); |