diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /ksysguard/gui/WorkSheet.h | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksysguard/gui/WorkSheet.h')
-rw-r--r-- | ksysguard/gui/WorkSheet.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/ksysguard/gui/WorkSheet.h b/ksysguard/gui/WorkSheet.h index f706f36dc..7715276fd 100644 --- a/ksysguard/gui/WorkSheet.h +++ b/ksysguard/gui/WorkSheet.h @@ -24,7 +24,7 @@ #ifndef KSG_WORKSHEET_H #define KSG_WORKSHEET_H -#include <qwidget.h> +#include <tqwidget.h> #include <SensorDisplay.h> @@ -42,35 +42,35 @@ class QStringList; layout. The number of columns can not be changed. Displays are added by dragging a sensor from the sensor browser over the WorkSheet. */ -class WorkSheet : public QWidget, public KSGRD::SensorBoard +class WorkSheet : public TQWidget, public KSGRD::SensorBoard { Q_OBJECT public: - WorkSheet( QWidget* parent, const char *name = 0 ); - WorkSheet( uint rows, uint columns, uint interval, QWidget* parent, + WorkSheet( TQWidget* parent, const char *name = 0 ); + WorkSheet( uint rows, uint columns, uint interval, TQWidget* parent, const char *name = 0 ); ~WorkSheet(); - bool load( const QString &fileName ); - bool save( const QString &fileName ); + bool load( const TQString &fileName ); + bool save( const TQString &fileName ); void cut(); void copy(); void paste(); - void setFileName( const QString &fileName ); - const QString& fileName() const; + void setFileName( const TQString &fileName ); + const TQString& fileName() const; bool modified() const; - void setTitle( const QString &title ); - QString title() const; + void setTitle( const TQString &title ); + TQString title() const; - KSGRD::SensorDisplay* addDisplay( const QString &hostname, - const QString &monitor, - const QString &sensorType, - const QString &sensorDescr, + KSGRD::SensorDisplay* addDisplay( const TQString &hostname, + const TQString &monitor, + const TQString &sensorType, + const TQString &sensorDescr, uint rows, uint columns ); //Returns the sensor at position row,column. //Return NULL if invalid row or column @@ -86,24 +86,24 @@ class WorkSheet : public QWidget, public KSGRD::SensorBoard void applyStyle(); signals: - void sheetModified( QWidget *sheet ); - void titleChanged( QWidget *sheet ); + void sheetModified( TQWidget *sheet ); + void titleChanged( TQWidget *sheet ); protected: - virtual QSize sizeHint() const; - void dragEnterEvent( QDragEnterEvent* ); - void dropEvent( QDropEvent* ); - void customEvent( QCustomEvent* ); + virtual TQSize sizeHint() const; + void dragEnterEvent( TQDragEnterEvent* ); + void dropEvent( TQDropEvent* ); + void customEvent( TQCustomEvent* ); private: void removeDisplay( KSGRD::SensorDisplay *display ); - bool replaceDisplay( uint row, uint column, QDomElement& element ); + bool replaceDisplay( uint row, uint column, TQDomElement& element ); void replaceDisplay( uint row, uint column, KSGRD::SensorDisplay* display = 0 ); - void collectHosts( QStringList &list ); + void collectHosts( TQStringList &list ); void createGrid( uint rows, uint columns ); @@ -113,16 +113,16 @@ class WorkSheet : public QWidget, public KSGRD::SensorBoard void fixTabOrder(); - QString currentDisplayAsXML(); + TQString currentDisplayAsXML(); bool mModified; uint mRows; uint mColumns; - QGridLayout* mGridLayout; - QString mFileName; - QString mTitle; + TQGridLayout* mGridLayout; + TQString mFileName; + TQString mTitle; /** This two dimensional array stores the pointers to the sensor displays |