From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kolourpaint/kpthumbnail.cpp | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'kolourpaint/kpthumbnail.cpp') diff --git a/kolourpaint/kpthumbnail.cpp b/kolourpaint/kpthumbnail.cpp index a45164ac..5c57b12d 100644 --- a/kolourpaint/kpthumbnail.cpp +++ b/kolourpaint/kpthumbnail.cpp @@ -30,9 +30,9 @@ #include -#include -#include -#include +#include +#include +#include #include #include @@ -47,10 +47,10 @@ // TODO: get out of the Alt+Tab list kpThumbnail::kpThumbnail (kpMainWindow *parent, const char *name) #if KP_IS_QT_3_3 - : QDockWindow (QDockWindow::OutsideDock, parent, name), + : TQDockWindow (TQDockWindow::OutsideDock, parent, name), #else // With Qt <3.3, OutsideDock requires parent = 0, // sync: make sure outside of dock - : QDockWindow (QDockWindow::InDock, parent, name), + : TQDockWindow (TQDockWindow::InDock, parent, name), #warning "Using Qt <3.3: the thumbnail will flicker more when appearing" #endif m_mainWindow (parent), @@ -81,22 +81,22 @@ kpThumbnail::kpThumbnail (kpMainWindow *parent, const char *name) } - QSize layoutMinimumSize = layout () ? layout ()->minimumSize () : QSize (); + TQSize layoutMinimumSize = layout () ? layout ()->minimumSize () : TQSize (); #if DEBUG_KP_THUMBNAIL kdDebug () << "\tlayout=" << layout () - << " minSize=" << (layout () ? layout ()->minimumSize () : QSize ()) << endl; + << " minSize=" << (layout () ? layout ()->minimumSize () : TQSize ()) << endl; kdDebug () << "\tboxLayout=" << boxLayout () - << " minSize=" << (boxLayout () ? boxLayout ()->minimumSize () : QSize ()) + << " minSize=" << (boxLayout () ? boxLayout ()->minimumSize () : TQSize ()) << endl; #endif if (layout ()) - layout ()->setResizeMode (QLayout::FreeResize); + layout ()->setResizeMode (TQLayout::FreeResize); setMinimumSize (QMAX (layoutMinimumSize.width (), 64), QMAX (layoutMinimumSize.height (), 64)); // Enable "X" Close Button - setCloseMode (QDockWindow::Always); + setCloseMode (TQDockWindow::Always); setResizeEnabled (true); @@ -127,10 +127,10 @@ void kpThumbnail::setView (kpThumbnailView *view) if (m_view) { - disconnect (m_view, SIGNAL (destroyed ()), - this, SLOT (slotViewDestroyed ())); - disconnect (m_view, SIGNAL (zoomLevelChanged (int, int)), - this, SLOT (updateCaption ())); + disconnect (m_view, TQT_SIGNAL (destroyed ()), + this, TQT_SLOT (slotViewDestroyed ())); + disconnect (m_view, TQT_SIGNAL (zoomLevelChanged (int, int)), + this, TQT_SLOT (updateCaption ())); boxLayout ()->remove (m_view); } @@ -139,10 +139,10 @@ void kpThumbnail::setView (kpThumbnailView *view) if (m_view) { - connect (m_view, SIGNAL (destroyed ()), - this, SLOT (slotViewDestroyed ())); - connect (m_view, SIGNAL (zoomLevelChanged (int, int)), - this, SLOT (updateCaption ())); + connect (m_view, TQT_SIGNAL (destroyed ()), + this, TQT_SLOT (slotViewDestroyed ())); + connect (m_view, TQT_SIGNAL (zoomLevelChanged (int, int)), + this, TQT_SLOT (updateCaption ())); updateCaption (); boxLayout ()->addWidget (m_view); @@ -182,14 +182,14 @@ void kpThumbnail::slotViewDestroyed () // protected virtual [base QWidget] -void kpThumbnail::resizeEvent (QResizeEvent *e) +void kpThumbnail::resizeEvent (TQResizeEvent *e) { #if DEBUG_KP_THUMBNAIL kdDebug () << "kpThumbnail::resizeEvent(" << width () << "," << height () << ")" << endl; #endif - QDockWindow::resizeEvent (e); + TQDockWindow::resizeEvent (e); // updateVariableZoom (); TODO: is below a good idea since this commented out @@ -203,7 +203,7 @@ void kpThumbnail::resizeEvent (QResizeEvent *e) } // protected virtual [base QWidget] -void kpThumbnail::moveEvent (QMoveEvent * /*e*/) +void kpThumbnail::moveEvent (TQMoveEvent * /*e*/) { if (m_mainWindow) m_mainWindow->notifyThumbnailGeometryChanged (); -- cgit v1.2.1