From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- klipper/toplevel.h | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'klipper/toplevel.h') diff --git a/klipper/toplevel.h b/klipper/toplevel.h index 20a6a3027..6f90b4ad8 100644 --- a/klipper/toplevel.h +++ b/klipper/toplevel.h @@ -24,10 +24,10 @@ #include #include #include -#include -#include +#include +#include #include -#include +#include class QClipboard; class KToggleAction; @@ -41,21 +41,21 @@ class QMimeSource; class HistoryItem; class KlipperSessionManaged; -class KlipperWidget : public QWidget, public DCOPObject +class KlipperWidget : public TQWidget, public DCOPObject { Q_OBJECT K_DCOP k_dcop: - QString getClipboardContents(); - void setClipboardContents(QString s); + TQString getClipboardContents(); + void setClipboardContents(TQString s); void clearClipboardContents(); void clearClipboardHistory(); - QStringList getClipboardHistoryMenu(); - QString getClipboardHistoryItem(int i); + TQStringList getClipboardHistoryMenu(); + TQString getClipboardHistoryItem(int i); public: - KlipperWidget( QWidget *parent, KConfig* config ); + KlipperWidget( TQWidget *parent, KConfig* config ); ~KlipperWidget(); virtual void adjustSize(); @@ -86,8 +86,8 @@ protected: */ enum SelectionMode { Clipboard = 2, Selection = 4 }; - void paintEvent(QPaintEvent *); - void mousePressEvent(QMouseEvent *); + void paintEvent(TQPaintEvent *); + void mousePressEvent(TQMouseEvent *); void readProperties(KConfig *); void readConfiguration(KConfig *); @@ -106,9 +106,9 @@ protected: * @returns the contents of the selection or, if empty, the contents of * the clipboard. */ - QString clipboardContents( bool *isSelection = 0L ); + TQString clipboardContents( bool *isSelection = 0L ); - void removeFromHistory( const QString& text ); + void removeFromHistory( const TQString& text ); void setEmptyClipboard(); void clipboardSignalArrived( bool selectionMode ); @@ -122,7 +122,7 @@ protected: /** * Enter clipboard data in the history. */ - void applyClipChanges( const QMimeSource& data ); + void applyClipChanges( const TQMimeSource& data ); void setClipboard( const HistoryItem& item, int mode ); bool ignoreClipboardChanges() const; @@ -132,7 +132,7 @@ protected: protected slots: void slotPopupMenu(); - void showPopupMenu( QPopupMenu * ); + void showPopupMenu( TQPopupMenu * ); void slotRepeatAction(); void setURLGrabberEnabled( bool ); void toggleURLGrabber(); @@ -160,10 +160,10 @@ private: QClipboard *clip; - QTime *hideTimer; - QTime *showTimer; + TQTime *hideTimer; + TQTime *showTimer; - QMimeSource* m_lastClipdata; + TQMimeSource* m_lastClipdata; int m_lastClipboard; int m_lastSelection; History* m_history; @@ -172,8 +172,8 @@ private: KAction* clearHistoryAction; KAction* configureAction; KAction* quitAction; - QPixmap m_pixmap; - QPixmap m_scaledpixmap; + TQPixmap m_pixmap; + TQPixmap m_scaledpixmap; int m_iconOrigWidth; int m_iconOrigHeight; bool bPopupAtMouse :1; @@ -197,11 +197,11 @@ private: int locklevel; URLGrabber *myURLGrabber; - QString m_lastURLGrabberTextSelection; - QString m_lastURLGrabberTextClipboard; + TQString m_lastURLGrabberTextSelection; + TQString m_lastURLGrabberTextClipboard; KConfig* m_config; - QTimer m_overflowClearTimer; - QTimer m_pendingCheckTimer; + TQTimer m_overflowClearTimer; + TQTimer m_pendingCheckTimer; bool m_pendingContentsCheck; ClipboardPoll* poll; static KAboutData* about_data; @@ -218,7 +218,7 @@ k_dcop: int newInstance(); void quitProcess(); // not ASYNC public: - Klipper( QWidget* parent = NULL ); + Klipper( TQWidget* parent = NULL ); }; #endif -- cgit v1.2.1