diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:10:16 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:10:16 -0600 |
commit | 81ad3b51a1f061b0934426aaf339917f76c0cfc5 (patch) | |
tree | d58f2500c1bfa5abeb84264cbaee55a7dd161bac /src/kmplayerview.cpp | |
parent | ee4b31b7bd3e899cad30866bf083c3ff6a4a9fc8 (diff) | |
download | kmplayer-81ad3b51a1f061b0934426aaf339917f76c0cfc5.tar.gz kmplayer-81ad3b51a1f061b0934426aaf339917f76c0cfc5.zip |
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/kmplayerview.cpp')
-rw-r--r-- | src/kmplayerview.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/kmplayerview.cpp b/src/kmplayerview.cpp index dd1e1f4..5ea3e1e 100644 --- a/src/kmplayerview.cpp +++ b/src/kmplayerview.cpp @@ -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 (); |