diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kdict/queryview.h | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdict/queryview.h')
-rw-r--r-- | kdict/queryview.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/kdict/queryview.h b/kdict/queryview.h index e942d297..e87bd977 100644 --- a/kdict/queryview.h +++ b/kdict/queryview.h @@ -19,7 +19,7 @@ #ifndef _QUERYVIEW_H_ #define _QUERYVIEW_H_ -#include <qvbox.h> +#include <tqvbox.h> #include <khtml_part.h> class QFile; @@ -28,7 +28,7 @@ class KPopupMenu; class DictComboAction; -QString getShortString(QString str,unsigned int length); +TQString getShortString(TQString str,unsigned int length); //******** SaveHelper ******************************************* @@ -38,20 +38,20 @@ class SaveHelper { public: - SaveHelper(const QString &saveName, const QString &filter, QWidget *parent); + SaveHelper(const TQString &saveName, const TQString &filter, TQWidget *parent); ~SaveHelper(); // returns a file open for writing - QFile* getFile(const QString &dialogTitle); + TQFile* getFile(const TQString &dialogTitle); private: - QWidget *p_arent; - QString s_aveName, f_ilter; + TQWidget *p_arent; + TQString s_aveName, f_ilter; KURL url; - QFile* file; + TQFile* file; KTempFile* tmpFile; - static QString lastPath; + static TQString lastPath; }; @@ -64,10 +64,10 @@ class BrowseData public: - BrowseData(const QString &Nhtml, const QString &NqueryText); + BrowseData(const TQString &Nhtml, const TQString &NqueryText); - QString html; - QString queryText; + TQString html; + TQString queryText; int xPos,yPos; }; @@ -80,7 +80,7 @@ class DictHTMLPart : public KHTMLPart public: - DictHTMLPart(QWidget *parentWidget = 0, const char *widgetname = 0); + DictHTMLPart(TQWidget *parentWidget = 0, const char *widgetname = 0); ~DictHTMLPart(); signals: @@ -101,7 +101,7 @@ class QueryView : public QVBox public: - QueryView(QWidget *_parent = 0L); + QueryView(TQWidget *_parent = 0L); ~QueryView(); void setActions(KToolBarPopupAction* NactBack, KToolBarPopupAction* NactForward, DictComboAction* NactQueryCombo); @@ -123,30 +123,30 @@ public slots: signals: - void defineRequested(const QString &query); - void matchRequested(const QString &query); + void defineRequested(const TQString &query); + void matchRequested(const TQString &query); void clipboardRequested(); void enableCopy(bool selected); // emited when the user selects/deselects text void enablePrintSave(); void renderingStarted(); void renderingStopped(); - void newCaption(const QString&); + void newCaption(const TQString&); protected: - void paletteChange ( const QPalette & ); - void fontChange ( const QFont & ); + void paletteChange ( const TQPalette & ); + void fontChange ( const TQFont & ); void saveCurrentResultPos(); void showResult(); protected slots: - void resultReady(const QString &result, const QString &query); + void resultReady(const TQString &result, const TQString &query); void partCompleted(); void slotURLRequest (const KURL &url, const KParts::URLArgs &args); void middleButtonClicked(); - void buildPopupMenu(const QString &url, const QPoint &point); + void buildPopupMenu(const TQString &url, const TQPoint &point); void popupDefineLink(); void popupMatchLink(); void popupOpenLink(); @@ -166,11 +166,11 @@ private: DictComboAction *actQueryCombo; KPopupMenu *rightBtnMenu; - QString popupLink,popupSelect; // needed for rightbtn-popup menu + TQString popupLink,popupSelect; // needed for rightbtn-popup menu - QPtrList<BrowseData> browseList; + TQPtrList<BrowseData> browseList; unsigned int browsePos; // position in browseList - QString currentHTMLHeader; + TQString currentHTMLHeader; bool isRendering; }; |