summaryrefslogtreecommitdiff
path: root/noncore/apps/dagger/opentextdlg.cpp
Unidiff
Diffstat (limited to 'noncore/apps/dagger/opentextdlg.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/dagger/opentextdlg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/dagger/opentextdlg.cpp b/noncore/apps/dagger/opentextdlg.cpp
index 8c94a4b..7fd5cde 100644
--- a/noncore/apps/dagger/opentextdlg.cpp
+++ b/noncore/apps/dagger/opentextdlg.cpp
@@ -8,43 +8,43 @@ Foundation; either version 2 of the License, or (at your option) any later versi
8 8
9This file is distributed in the hope that it will be useful, but WITHOUT ANY 9This file is distributed in the hope that it will be useful, but WITHOUT ANY
10WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 10WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11PARTICULAR PURPOSE. See the GNU General Public License for more details. 11PARTICULAR PURPOSE. See the GNU General Public License for more details.
12 12
13You should have received a copy of the GNU General Public License along with this 13You should have received a copy of the GNU General Public License along with this
14file; see the file COPYING. If not, write to the Free Software Foundation, Inc., 14file; see the file COPYING. If not, write to the Free Software Foundation, Inc.,
1559 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 1559 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16*/ 16*/
17 17
18#include "opentextdlg.h" 18#include "opentextdlg.h"
19 19
20#include <qpe/resource.h> 20#include <qpe/applnk.h>
21 21
22#include <qheader.h> 22#include <qheader.h>
23#include <qlayout.h> 23#include <qlayout.h>
24#include <qpixmap.h> 24#include <qpixmap.h>
25 25
26OpenTextDlg::OpenTextDlg( QWidget *parent, sword::SWMgr *swordMgr, QPixmap *bibleIcon, 26OpenTextDlg::OpenTextDlg( QWidget *parent, sword::SWMgr *swordMgr, QPixmap *bibleIcon,
27 QPixmap *commentaryIcon, QPixmap *lexiconIcon ) 27 QPixmap *commentaryIcon, QPixmap *lexiconIcon )
28 : QDialog( parent, QString::null, true ) 28 : QDialog( parent, QString::null, true )
29 , m_textList( this ) 29 , m_textList( this )
30{ 30{
31 setCaption( tr( "Open text" ) ); 31 setCaption( tr( "Open text" ) );
32 32
33 QVBoxLayout *layout = new QVBoxLayout( this ); 33 QVBoxLayout *layout = new QVBoxLayout( this );
34 layout->setMargin( 4 ); 34 layout->setMargin( 4 );
35 layout->addWidget( &m_textList ); 35 layout->addWidget( &m_textList );
36 36
37 m_textList.setRootIsDecorated( true ); 37 m_textList.setRootIsDecorated( true );
38 m_textList.addColumn( tr( "Icon" ),35 ); 38 m_textList.addColumn( tr( "Icon" ) );
39 m_textList.addColumn( tr( "Text" ) ); 39 m_textList.addColumn( tr( "Text" ) );
40 m_textList.header()->hide(); 40 m_textList.header()->hide();
41 m_textList.setAllColumnsShowFocus( true ); 41 m_textList.setAllColumnsShowFocus( true );
42 m_textList.setSorting( 1 ); 42 m_textList.setSorting( 1 );
43 43
44 m_commentaries = new QListViewItem( &m_textList, QString::null, tr( "Commentaries" ) ); 44 m_commentaries = new QListViewItem( &m_textList, QString::null, tr( "Commentaries" ) );
45 m_commentaries->setPixmap( 0, *commentaryIcon ); 45 m_commentaries->setPixmap( 0, *commentaryIcon );
46 m_textList.insertItem( m_commentaries ); 46 m_textList.insertItem( m_commentaries );
47 m_lexicons = new QListViewItem( &m_textList, QString::null, tr( "Lexicons/Dictionaries" ) ); 47 m_lexicons = new QListViewItem( &m_textList, QString::null, tr( "Lexicons/Dictionaries" ) );
48 m_lexicons->setPixmap( 0, *lexiconIcon ); 48 m_lexicons->setPixmap( 0, *lexiconIcon );
49 m_textList.insertItem( m_lexicons ); 49 m_textList.insertItem( m_lexicons );
50 m_bibles = new QListViewItem( &m_textList, QString::null, tr( "Biblical Texts" ) ); 50 m_bibles = new QListViewItem( &m_textList, QString::null, tr( "Biblical Texts" ) );