diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 19:00:37 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 19:00:37 +0000 |
commit | 25794f504692e5a36c490438814e9dfda8aaa2dd (patch) | |
tree | 8061e6d27b5bc9042afdff177872779c4e8c9015 /src/kchmdialogchooseurlfromlist.cpp | |
parent | 35ff2a942f63b5201c04f41c3097e61cdd7817e9 (diff) | |
download | kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.tar.gz kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.zip |
TQt4 port kchmviewer
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kchmviewer@1234150 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kchmdialogchooseurlfromlist.cpp')
-rw-r--r-- | src/kchmdialogchooseurlfromlist.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/kchmdialogchooseurlfromlist.cpp b/src/kchmdialogchooseurlfromlist.cpp index de33fc3..bd9bde3 100644 --- a/src/kchmdialogchooseurlfromlist.cpp +++ b/src/kchmdialogchooseurlfromlist.cpp @@ -24,47 +24,47 @@ #include "kchmdialogchooseurlfromlist.h" #include "kchmtreeviewitem.h" -KCHMDialogChooseUrlFromList::KCHMDialogChooseUrlFromList(const QStringList& urls, const QStringList& titles, QWidget* parent) - : QDialog(parent, 0, true) +KCHMDialogChooseUrlFromList::KCHMDialogChooseUrlFromList(const TQStringList& urls, const TQStringList& titles, TQWidget* tqparent) + : TQDialog(tqparent, 0, true) { - QVBoxLayout * layout = new QVBoxLayout (this); - layout->setMargin (5); + TQVBoxLayout * tqlayout = new TQVBoxLayout (this); + tqlayout->setMargin (5); - QListView * m_urlsList = new QListView (this); + TQListView * m_urlsList = new TQListView (this); m_urlsList->addColumn( i18n( "Topics" ) ); for ( unsigned int i = 0; i < urls.size(); i++ ) new KCHMSingleTreeViewItem (m_urlsList, titles[i], urls[i]); - layout->addWidget ( new QLabel( i18n( "Please select one of the topics below:"), this) ); - layout->addWidget ( m_urlsList ); + tqlayout->addWidget ( new TQLabel( i18n( "Please select one of the topics below:"), this) ); + tqlayout->addWidget ( m_urlsList ); - QHBoxLayout * hlayout = new QHBoxLayout (layout); - QPushButton * bok = new QPushButton( i18n( "&Ok" ), this); - QPushButton * bcancel = new QPushButton( i18n( "&Cancel" ), this); + TQHBoxLayout * htqlayout = new TQHBoxLayout (tqlayout); + TQPushButton * bok = new TQPushButton( i18n( "&Ok" ), this); + TQPushButton * bcancel = new TQPushButton( i18n( "&Cancel" ), this); - hlayout->addWidget (bok); - hlayout->addWidget (bcancel); + htqlayout->addWidget (bok); + htqlayout->addWidget (bcancel); - connect( m_urlsList, SIGNAL( doubleClicked ( QListViewItem *, const QPoint &, int) ), this, SLOT( onDoubleClicked ( QListViewItem *, const QPoint &, int) ) ); - connect( m_urlsList, SIGNAL( currentChanged ( QListViewItem *) ), this, SLOT( onCurrentChanged ( QListViewItem *) ) ); + connect( m_urlsList, TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ), this, TQT_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) ); + connect( m_urlsList, TQT_SIGNAL( currentChanged ( TQListViewItem *) ), this, TQT_SLOT( onCurrentChanged ( TQListViewItem *) ) ); - connect( bok, SIGNAL( clicked () ), this, SLOT( accept() ) ); - connect( bcancel, SIGNAL( clicked () ), this, SLOT( reject() ) ); - m_acceptedurl = QString::null; + connect( bok, TQT_SIGNAL( clicked () ), this, TQT_SLOT( accept() ) ); + connect( bcancel, TQT_SIGNAL( clicked () ), this, TQT_SLOT( reject() ) ); + m_acceptedurl = TQString(); } -void KCHMDialogChooseUrlFromList::onDoubleClicked( QListViewItem * , const QPoint &, int ) +void KCHMDialogChooseUrlFromList::onDoubleClicked( TQListViewItem * , const TQPoint &, int ) { accept(); } -void KCHMDialogChooseUrlFromList::onCurrentChanged( QListViewItem * item ) +void KCHMDialogChooseUrlFromList::onCurrentChanged( TQListViewItem * item ) { if ( item ) m_acceptedurl = ((KCHMSingleTreeViewItem *) item)->getUrl(); else - m_acceptedurl = QString::null; + m_acceptedurl = TQString(); } #include "kchmdialogchooseurlfromlist.moc" |