diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kolourpaint/kpthumbnail.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolourpaint/kpthumbnail.cpp')
-rw-r--r-- | kolourpaint/kpthumbnail.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
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 <kpthumbnail.h> -#include <qdockarea.h> -#include <qdockwindow.h> -#include <qtimer.h> +#include <tqdockarea.h> +#include <tqdockwindow.h> +#include <tqtimer.h> #include <kdebug.h> #include <klocale.h> @@ -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 (); |