summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/dagger/configuredlg.cpp6
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
@@ -38,38 +38,40 @@ ConfigureDlg::ConfigureDlg( QWidget *parent, const QString &swordPath, bool alwa
38 layout->setMargin( 4 ); 38 layout->setMargin( 4 );
39 layout->addWidget( &m_tabs ); 39 layout->addWidget( &m_tabs );
40 40
41 // General tab 41 // General tab
42 QWidget *widget = new QWidget( this ); 42 QWidget *widget = new QWidget( this );
43 QGridLayout *grid = new QGridLayout( widget, 1, 2, 4, 2 ); 43 QGridLayout *grid = new QGridLayout( widget, 1, 2, 4, 2 );
44 grid->setRowStretch( 9, 5 ); 44 grid->setRowStretch( 9, 5 );
45 grid->setColStretch( 0, 2 ); 45 grid->setColStretch( 0, 2 );
46 46
47 QLabel *label = new QLabel( tr( "Path where Sword texts are located:" ), widget ); 47 QLabel *label = new QLabel( tr( "Path where Sword texts are located:" ), widget );
48 label->setAlignment( Qt::AlignLeft | Qt::AlignTop | Qt::WordBreak ); 48 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." ) ); 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." ) );
50 grid->addMultiCellWidget( label, 0, 0, 0, 1 ); 50 grid->addMultiCellWidget( label, 0, 0, 0, 1 );
51 m_swordPath = new QLineEdit( swordPath, widget ); 51 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." ) ); 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." ) );
53 grid->addWidget( m_swordPath, 1, 0 ); 53 grid->addWidget( m_swordPath, 1, 0 );
54 QPushButton *btn = new QPushButton( Resource::loadPixmap( "folder" ), QString::null, widget ); 54 QPixmap pic;
55 pic.convertFromImage( Resource::loadImage( "folder" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
56 QPushButton *btn = new QPushButton( pic, QString::null, widget );
55 btn->setMaximumWidth( btn->height() ); 57 btn->setMaximumWidth( btn->height() );
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." ) ); 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." ) );
57 connect( btn, SIGNAL(clicked()), this, SLOT(slotSelectSwordPath()) ); 59 connect( btn, SIGNAL(clicked()), this, SLOT(slotSelectSwordPath()) );
58 grid->addWidget( btn, 1, 1 ); 60 grid->addWidget( btn, 1, 1 );
59 61
60 label = new QLabel( tr( "(Note: Dagger must be restarted for this option to take affect.)" ), widget ); 62 label = new QLabel( tr( "(Note: Dagger must be restarted for this option to take affect.)" ), widget );
61 label->setAlignment( Qt::AlignHCenter | Qt::AlignTop | Qt::WordBreak ); 63 label->setAlignment( Qt::AlignHCenter | Qt::AlignTop | Qt::WordBreak );
62 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." ) ); 64 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." ) );
63 grid->addMultiCellWidget( label, 2, 2, 0, 1 ); 65 grid->addMultiCellWidget( label, 2, 2, 0, 1 );
64 66
65 grid->addRowSpacing( 3, 15 ); 67 grid->addRowSpacing( 3, 15 );
66 68
67 m_alwaysOpenNew = new QCheckBox( tr( "Always open texts in new window?" ), widget ); 69 m_alwaysOpenNew = new QCheckBox( tr( "Always open texts in new window?" ), widget );
68 m_alwaysOpenNew->setChecked( alwaysOpenNew ); 70 m_alwaysOpenNew->setChecked( alwaysOpenNew );
69 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." ) ); 71 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." ) );
70 grid->addMultiCellWidget( m_alwaysOpenNew, 4, 4, 0, 1 ); 72 grid->addMultiCellWidget( m_alwaysOpenNew, 4, 4, 0, 1 );
71 73
72 grid->addRowSpacing( 5, 15 ); 74 grid->addRowSpacing( 5, 15 );
73 75
74 label = new QLabel( tr( "Number of verses to display at a time:" ), widget ); 76 label = new QLabel( tr( "Number of verses to display at a time:" ), widget );
75 label->setAlignment( Qt::AlignLeft | Qt::AlignTop | Qt::WordBreak ); 77 label->setAlignment( Qt::AlignLeft | Qt::AlignTop | Qt::WordBreak );