summaryrefslogtreecommitdiffstats
path: root/kviewshell/kmultipage.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/kmultipage.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/kmultipage.h')
-rw-r--r--kviewshell/kmultipage.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/kviewshell/kmultipage.h b/kviewshell/kmultipage.h
index 285031ca..dc05200a 100644
--- a/kviewshell/kmultipage.h
+++ b/kviewshell/kmultipage.h
@@ -37,9 +37,10 @@ class SearchWidget;
class KMultiPage : public KParts::ReadOnlyPart, virtual public kmultipageInterface
{
Q_OBJECT
+ TQ_OBJECT
public:
- KMultiPage(TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name);
+ KMultiPage(TQWidget *tqparentWidget, const char *widgetName, TQObject *tqparent, const char *name);
virtual ~KMultiPage();
/* returns the scrollview used for the display */
@@ -91,7 +92,7 @@ public:
should) therefore be re-implemented if you have good code to convert
your document to PostScript.
- Example: If your document consists of a single A4 page that contains
+ Example: If your document consists of a single A4 page that tqcontains
a DJVU image of 30KB, then the default implementation would render
the image in 600dpi, i.e. in about 7000x5000 pixel, and then send
this huge graphics uncompressed to the printer. A smart
@@ -120,7 +121,7 @@ public:
// Show the printer options dialog. Return immediately if the user
// aborts.
- if (!printer->setup(parentWdg, i18n("Print %1").arg(m_file.section('/', -1)) )) {
+ if (!printer->setup(tqparentWdg, i18n("Print %1").tqarg(m_file.section('/', -1)) )) {
delete printer;
return;
}
@@ -154,7 +155,7 @@ public:
// Show the printer options dialog. Return immediately if the user
// aborts.
- if (!printer->setup(parentWdg, i18n("Print %1").arg(m_file.section('/', -1)) )) {
+ if (!printer->setup(tqparentWdg, i18n("Print %1").tqarg(m_file.section('/', -1)) )) {
delete printer;
return;
}
@@ -291,8 +292,8 @@ public:
virtual double calculateFitToHeightZoomValue();
/* Returns the number of columns into which the widgets are aligned. */
- virtual Q_UINT8 getNrColumns() const { return _scrollView->getNrColumns(); }
- virtual Q_UINT8 getNrRows() const { return _scrollView->getNrRows(); }
+ virtual TQ_UINT8 getNrColumns() const { return _scrollView->getNrColumns(); }
+ virtual TQ_UINT8 getNrRows() const { return _scrollView->getNrRows(); }
virtual bool overviewMode() const { return _scrollView->overviewMode(); }
@@ -425,9 +426,9 @@ public slots:
*/
void renderModeChanged();
- /* Empties the page cache and --as the name suggests-- repaints all
+ /* Empties the page cache and --as the name suggests-- tqrepaints all
visible widgets. */
- void repaintAllVisibleWidgets();
+ void tqrepaintAllVisibleWidgets();
/* Tells the multipage if scrollbars should be used. */
virtual void slotShowScrollbars(bool);
@@ -485,7 +486,7 @@ public slots:
makes it a little easier for the user to scroll with the mouse
wheel or the keyboard without involuntarily moving to another
page. */
- virtual void scroll(Q_INT32 deltaInPixel);
+ virtual void scroll(TQ_INT32 deltaInPixel);
virtual void slotEnableMoveTool(bool enable);
@@ -564,11 +565,11 @@ protected:
KPrinter *getPrinter(bool enablePageSizeFeatures=true);
- /** Pointer to the parent widget
+ /** Pointer to the tqparent widget
This pointer is automatically set by the constructor.
*/
- TQGuardedPtr<TQWidget> parentWdg;
+ TQGuardedPtr<TQWidget> tqparentWdg;
TQPtrVector<DocumentWidget> widgetList;