summaryrefslogtreecommitdiffstats
path: root/kviewshell/marklist.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kviewshell/marklist.h
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kviewshell/marklist.h')
-rw-r--r--kviewshell/marklist.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/kviewshell/marklist.h b/kviewshell/marklist.h
index dd8c07a4..5e51d694 100644
--- a/kviewshell/marklist.h
+++ b/kviewshell/marklist.h
@@ -40,12 +40,13 @@ class MarkListWidget;
/****** ThumbnailWidget ******/
-class ThumbnailWidget : public QWidget
+class ThumbnailWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- ThumbnailWidget(MarkListWidget* parent_, const PageNumber& _pageNumber, DocumentPageCache*);
+ ThumbnailWidget(MarkListWidget* tqparent_, const PageNumber& _pageNumber, DocumentPageCache*);
private:
virtual void paintEvent(TQPaintEvent*);
@@ -61,7 +62,7 @@ private:
DocumentPageCache* pageCache;
- MarkListWidget* parent;
+ MarkListWidget* tqparent;
TQPixmap thumbnail;
};
@@ -70,9 +71,10 @@ private:
/****** MarkListWidget ******/
-class MarkListWidget : public QWidget
+class MarkListWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
MarkListWidget(TQWidget* _parent, MarkList*, const PageNumber& _pageNumber, DocumentPageCache*, bool _showThumbnail = true);
@@ -121,12 +123,13 @@ private:
/****** MarkList ******/
-class MarkList: public QScrollView
+class MarkList: public TQScrollView
{
Q_OBJECT
+ TQ_OBJECT
public:
- MarkList(TQWidget* parent = 0, const char* name = 0);
+ MarkList(TQWidget* tqparent = 0, const char* name = 0);
virtual ~MarkList();
void setPageCache(DocumentPageCache*);
@@ -137,7 +140,7 @@ public:
PageNumber numberOfPages() { return widgetList.count(); }
- virtual TQSize sizeHint() const { return TQSize(); }
+ virtual TQSize tqsizeHint() const { return TQSize(); }
public slots:
void setNumberOfPages(int numberOfPages, bool showThumbnails = true);
@@ -148,7 +151,7 @@ public slots:
void clear();
void slotShowThumbnails(bool);
- void repaintThumbnails();
+ void tqrepaintThumbnails();
void updateWidgetSize(const PageNumber&);