diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /klinkstatus/src/ui/tablelinkstatus.h | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'klinkstatus/src/ui/tablelinkstatus.h')
-rw-r--r-- | klinkstatus/src/ui/tablelinkstatus.h | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/klinkstatus/src/ui/tablelinkstatus.h b/klinkstatus/src/ui/tablelinkstatus.h index 0b3f2cf2..cb003209 100644 --- a/klinkstatus/src/ui/tablelinkstatus.h +++ b/klinkstatus/src/ui/tablelinkstatus.h @@ -21,11 +21,11 @@ #ifndef TABLE_LINKSTATUS_H #define TABLE_LINKSTATUS_H -#include <qtable.h> -#include <qstring.h> -#include <qcolor.h> -#include <qpopupmenu.h> -#include <qvaluevector.h> +#include <tqtable.h> +#include <tqstring.h> +#include <tqcolor.h> +#include <tqpopupmenu.h> +#include <tqvaluevector.h> class QStringList; class KURL; @@ -43,18 +43,18 @@ int const STATUS_COLUMN_WIDTH = 50; class TableItem; -class TableLinkstatus: public QTable, public ResultView +class TableLinkstatus: public TQTable, public ResultView { Q_OBJECT public: - TableLinkstatus(QWidget * parent = 0, const char * name = 0, + TableLinkstatus(TQWidget * parent = 0, const char * name = 0, int column_index_status = 1, int column_index_label = 2, int column_index_URL = 3); ~TableLinkstatus(); - virtual void setColumns(QStringList const& columns); + virtual void setColumns(TQStringList const& columns); /* Insere uma nova entrada no fim da tabela */ virtual void insertResult(LinkStatus const* linkstatus); @@ -66,7 +66,7 @@ public: virtual void showAll(); - /* Specialization of QTable::ensureCellVisible */ + /* Specialization of TQTable::ensureCellVisible */ virtual void ensureCellVisible(int row, int col); virtual bool textFitsInCell(int row, int col) const; @@ -76,7 +76,7 @@ public: private slots: - virtual void slotPopupContextMenu(int row, int col, const QPoint& pos); + virtual void slotPopupContextMenu(int row, int col, const TQPoint& pos); virtual void slotCopyUrlToClipboard() const; virtual void slotCopyParentUrlToClipboard() const; virtual void slotCopyCellTextToClipboard() const; @@ -85,7 +85,7 @@ private slots: virtual void slotEditReferrerWithQuanta(KURL const& url); virtual void slotViewUrlInBrowser(); virtual void slotViewParentUrlInBrowser(); - virtual void loadContextTableMenu(QValueVector<KURL> const& referrers, bool is_root = false); + virtual void loadContextTableMenu(TQValueVector<KURL> const& referrers, bool is_root = false); private: @@ -98,17 +98,17 @@ private: int col_label_; int col_url_; CellToolTip* cell_tip_; - QPopupMenu context_table_menu_; - QPopupMenu* sub_menu_; + TQPopupMenu context_table_menu_; + TQPopupMenu* sub_menu_; */ }; -class TableItem: public QTableItem, public ResultViewItem +class TableItem: public TQTableItem, public ResultViewItem { public: - TableItem(QTable* table, EditType et, + TableItem(TQTable* table, EditType et, LinkStatus const* linkstatus, int column_index, int alignment = Qt::AlignLeft); virtual ~TableItem(); @@ -119,14 +119,14 @@ public: void setAlignment(int aFlags); virtual int alignment() const; - virtual QString toolTip() const = 0; + virtual TQString toolTip() const = 0; //LinkStatus const* const linkStatus() const; protected: - //QColor const& textStatusColor() const; - virtual void paint( QPainter *p, const QColorGroup &cg, - const QRect &cr, bool selected ); + //TQColor const& textStatusColor() const; + virtual void paint( TQPainter *p, const TQColorGroup &cg, + const TQRect &cr, bool selected ); virtual void setText() = 0; virtual void setPixmap() = 0; @@ -142,18 +142,18 @@ class TableItemURL: public TableItem { public: - TableItemURL(QTable* table, EditType et, + TableItemURL(TQTable* table, EditType et, LinkStatus const* linkstatus, int column_index = 3); //virtual ~TableItemURL(){}; - virtual QString toolTip() const; + virtual TQString toolTip() const; protected: virtual void setText(); virtual void setPixmap(); - virtual void paint( QPainter *p, const QColorGroup &cg, const QRect &cr, bool selected ); - QColor const& textStatusColor() const; + virtual void paint( TQPainter *p, const TQColorGroup &cg, const TQRect &cr, bool selected ); + TQColor const& textStatusColor() const; }; @@ -161,17 +161,17 @@ class TableItemStatus: public TableItem { public: - TableItemStatus(QTable* table, EditType et, + TableItemStatus(TQTable* table, EditType et, LinkStatus const* linkstatus, int column_index = 1); //virtual ~TableItemStatus(){}; - virtual QString toolTip() const; + virtual TQString toolTip() const; protected: virtual void setText(); virtual void setPixmap(); - virtual void paint( QPainter *p, const QColorGroup &cg, const QRect &cr, bool selected ); + virtual void paint( TQPainter *p, const TQColorGroup &cg, const TQRect &cr, bool selected ); }; @@ -179,24 +179,24 @@ class TableItemNome: public TableItem { public: - TableItemNome(QTable* table, EditType et, + TableItemNome(TQTable* table, EditType et, LinkStatus const* linkstatus, int column_index = 2); //virtual ~TableItemNome(){}; - virtual QString toolTip() const; + virtual TQString toolTip() const; protected: virtual void setText(); virtual void setPixmap(); - //virtual void paint( QPainter *p, const QColorGroup &cg, const QRect &cr, bool selected ); + //virtual void paint( TQPainter *p, const TQColorGroup &cg, const TQRect &cr, bool selected ); }; -inline void TableItem::paint( QPainter *p, const QColorGroup &cg, - const QRect &cr, bool selected ) +inline void TableItem::paint( TQPainter *p, const TQColorGroup &cg, + const TQRect &cr, bool selected ) { - QTableItem::paint(p, cg, cr, selected); + TQTableItem::paint(p, cg, cr, selected); } #endif |