diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:30:48 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:30:48 -0600 |
commit | f97c8a56e217f04e08776ccf8021721b7d919b7d (patch) | |
tree | 436c68db12057f4d08acfbf37bec9cd8dfafcec8 /src/kmplayerview.cpp | |
parent | d211eb866a067b537fb32cab5f10f8dd24a73ad7 (diff) | |
download | kmplayer-f97c8a56e217f04e08776ccf8021721b7d919b7d.tar.gz kmplayer-f97c8a56e217f04e08776ccf8021721b7d919b7d.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/kmplayerview.cpp')
-rw-r--r-- | src/kmplayerview.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/kmplayerview.cpp b/src/kmplayerview.cpp index dd1e1f4..5e1ede7 100644 --- a/src/kmplayerview.cpp +++ b/src/kmplayerview.cpp @@ -25,9 +25,9 @@ #include <tqtimer.h> #include <tqpainter.h> #include <tqmetaobject.h> -#include <tqlayout.h> +#include <layout.h> #include <tqpixmap.h> -#include <tqtextedit.h> +#include <textedit.h> #include <tqtooltip.h> #include <tqapplication.h> #include <tqiconset.h> @@ -38,7 +38,7 @@ #include <tqdatastream.h> #include <tqwidgetstack.h> #include <tqcursor.h> -#include <tqclipboard.h> +#include <clipboard.h> #include <kiconloader.h> #include <kstatusbar.h> @@ -68,7 +68,7 @@ static const int XKeyPress = KeyPress; #undef KeyPress #undef Always #undef Never -#undef tqStatus +#undef Status #undef Unsorted #undef Bool @@ -190,10 +190,10 @@ KDE_NO_EXPORT void View::init (KActionCollection * action_collection) { viewbox->addWidget (m_dockarea); m_widgetstack = new TQWidgetStack (m_view_area); m_control_panel = new ControlPanel (m_view_area, this); - m_control_panel->setMaximumSize (2500, controlPanel ()->tqmaximumSize ().height ()); + m_control_panel->setMaximumSize (2500, controlPanel ()->maximumSize ().height ()); m_status_bar = new StatusBar (m_view_area); m_status_bar->insertItem (TQString (""), 0); - TQSize sbsize = m_status_bar->tqsizeHint (); + TQSize sbsize = m_status_bar->sizeHint (); m_status_bar->hide (); m_status_bar->setMaximumSize (2500, sbsize.height ()); m_viewer = new Viewer (m_widgetstack, this); @@ -267,9 +267,9 @@ void View::toggleShowPlaylist () { else { bool horz = true; TQStyle & style = m_playlist->tqstyle (); - int h = style.tqpixelMetric (TQStyle::PM_ScrollBarExtent, m_playlist); - h += style.tqpixelMetric(TQStyle::PM_DockWindowFrameWidth, m_playlist); - h +=style.tqpixelMetric(TQStyle::PM_DockWindowHandleExtent,m_playlist); + int h = style.pixelMetric (TQStyle::PM_ScrollBarExtent, m_playlist); + h += style.pixelMetric(TQStyle::PM_DockWindowFrameWidth, m_playlist); + h +=style.pixelMetric(TQStyle::PM_DockWindowHandleExtent,m_playlist); for (TQListViewItem *i=m_playlist->firstChild();i;i=i->itemBelow()) { h += i->height (); if (h > int (0.25 * height ())) { @@ -482,7 +482,7 @@ KDE_NO_EXPORT void View::timerEvent (TQTimerEvent * e) { m_widgetstack->visibleWidget () == m_widgettypes[WT_Picture]) { int vert_buttons_pos = m_view_area->height()-statusBarHeight (); TQPoint mouse_pos = m_view_area->mapFromGlobal (TQCursor::pos ()); - int cp_height = m_control_panel->tqmaximumSize ().height (); + int cp_height = m_control_panel->maximumSize ().height (); bool mouse_on_buttons = (//m_view_area->hasMouse () && mouse_pos.y () >= vert_buttons_pos-cp_height && mouse_pos.y ()<= vert_buttons_pos && @@ -632,7 +632,7 @@ KDE_NO_EXPORT int View::statusBarHeight () const { if (statusBarMode () == SB_Only) return height (); else - return statusBar()->tqmaximumSize ().height (); + return statusBar()->maximumSize ().height (); } return 0; } @@ -665,7 +665,7 @@ bool View::x11Event (XEvent * e) { if (e->xmotion.window == m_viewer->embeddedWinId ()) delayedShowButtons (e->xmotion.y > m_view_area->height () - statusBarHeight () - - m_control_panel->tqmaximumSize ().height ()); + m_control_panel->maximumSize ().height ()); m_view_area->mouseMoved (); break; case MapNotify: @@ -749,7 +749,7 @@ KDE_NO_EXPORT void Viewer::windowChanged (WId w) { KDE_NO_EXPORT void Viewer::mouseMoveEvent (TQMouseEvent * e) { if (e->state () == Qt::NoButton) { - int cp_height = m_view->controlPanel ()->tqmaximumSize ().height (); + int cp_height = m_view->controlPanel ()->maximumSize ().height (); m_view->delayedShowButtons (e->y () > height () - cp_height); } m_view->viewArea ()->mouseMoved (); |