summaryrefslogtreecommitdiffstats
path: root/src/modules/options/dialog.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
commit0a80cfd57d271dd44221467efb426675fa470356 (patch)
tree6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/modules/options/dialog.h
parent3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff)
downloadkvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz
kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/modules/options/dialog.h')
-rw-r--r--src/modules/options/dialog.h48
1 files changed, 25 insertions, 23 deletions
diff --git a/src/modules/options/dialog.h b/src/modules/options/dialog.h
index b342ca51..267c5529 100644
--- a/src/modules/options/dialog.h
+++ b/src/modules/options/dialog.h
@@ -26,32 +26,33 @@
//=============================================================================
-#include <qdialog.h>
+#include <tqdialog.h>
#include "kvi_tal_listview.h"
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include "kvi_optionswidget.h"
#include "instances.h"
-class QLabel;
+class TQLabel;
class KviTalWidgetStack;
-class QPushButton;
-class QLineEdit;
-class QToolButton;
+class TQPushButton;
+class TQLineEdit;
+class TQToolButton;
class KviGeneralOptionsFrontWidget : public KviOptionsWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- KviGeneralOptionsFrontWidget(QWidget *parent,const QString &szText);
+ KviGeneralOptionsFrontWidget(TQWidget *tqparent,const TQString &szText);
~KviGeneralOptionsFrontWidget();
};
class KviOptionsListViewItem : public KviTalListViewItem
{
public:
- KviOptionsListViewItem(KviTalListView *parent,KviOptionsWidgetInstanceEntry * e);
- KviOptionsListViewItem(KviTalListViewItem *parent,KviOptionsWidgetInstanceEntry * e);
+ KviOptionsListViewItem(KviTalListView *tqparent,KviOptionsWidgetInstanceEntry * e);
+ KviOptionsListViewItem(KviTalListViewItem *tqparent,KviOptionsWidgetInstanceEntry * e);
~KviOptionsListViewItem();
public:
KviOptionsWidgetInstanceEntry * m_pInstanceEntry;
@@ -60,26 +61,27 @@ public:
public:
void setHighlighted(bool b){ m_bHighlighted = b; };
protected:
- virtual void paintCell(QPainter * p,const QColorGroup & cg,int column,int width,int align);
+ virtual void paintCell(TQPainter * p,const TQColorGroup & cg,int column,int width,int align);
};
-class KviOptionsDialog : public QDialog
+class KviOptionsDialog : public TQDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- KviOptionsDialog(QWidget * par,const QString &szGroup);
+ KviOptionsDialog(TQWidget * par,const TQString &szGroup);
~KviOptionsDialog();
private:
KviTalListView * m_pListView;
- QLabel * m_pCategoryLabel;
+ TQLabel * m_pCategoryLabel;
KviTalWidgetStack * m_pWidgetStack;
KviGeneralOptionsFrontWidget* m_pFrontWidget;
- QString m_szGroup;
- QLineEdit * m_pSearchLineEdit;
- QToolButton * m_pSearchButton;
+ TQString m_szGroup;
+ TQLineEdit * m_pSearchLineEdit;
+ TQToolButton * m_pSearchButton;
private:
void recursiveCommit(KviOptionsListViewItem *it);
- void fillListView(KviTalListViewItem * p,KviPointerList<KviOptionsWidgetInstanceEntry> * l,const QString &szGroup,bool bNotContainedOnly = false);
+ void fillListView(KviTalListViewItem * p,KviPointerList<KviOptionsWidgetInstanceEntry> * l,const TQString &szGroup,bool bNotContainedOnly = false);
//KviOptionsListViewItem * showHiddenChildren(KviTalListViewItem * p,KviPointerList<KviOptionsWidgetInstanceEntry> * l);
KviOptionsListViewItem * findItemByPage(KviOptionsListViewItem *it,KviOptionsWidget * pPage);
private slots:
@@ -89,15 +91,15 @@ private slots:
void cancelClicked();
void pageWantsToSwitchToAdvancedPage(KviOptionsWidget * pPage);
void searchClicked();
- void searchLineEditTextChanged(const QString &);
+ void searchLineEditTextChanged(const TQString &);
protected:
void apply(bool bDialogAboutToClose);
- virtual void closeEvent(QCloseEvent *e);
- virtual void keyPressEvent( QKeyEvent * e );
- bool recursiveSearch(KviOptionsListViewItem * pItem,const QStringList &lKeywords);
+ virtual void closeEvent(TQCloseEvent *e);
+ virtual void keyPressEvent( TQKeyEvent * e );
+ bool recursiveSearch(KviOptionsListViewItem * pItem,const TQStringList &lKeywords);
public:
- void search(const QString &szKeywords);
- void search(const QStringList &lKeywords);
+ void search(const TQString &szKeywords);
+ void search(const TQStringList &lKeywords);
};