diff options
Diffstat (limited to 'kmix/viewgrid.cpp')
-rw-r--r-- | kmix/viewgrid.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kmix/viewgrid.cpp b/kmix/viewgrid.cpp index 1aba7fcf..588f9c5e 100644 --- a/kmix/viewgrid.cpp +++ b/kmix/viewgrid.cpp @@ -126,9 +126,9 @@ TQWidget* ViewGrid::add(MixDevice *md) return mdw; } -TQSize ViewGrid::tqsizeHint() const { - // kdDebug(67100) << "ViewGrid::tqsizeHint(): NewSize is " << _layoutMDW->tqsizeHint() << "\n"; - return( m_tqsizeHint); +TQSize ViewGrid::sizeHint() const { + // kdDebug(67100) << "ViewGrid::sizeHint(): NewSize is " << _layoutMDW->sizeHint() << "\n"; + return( m_sizeHint); } void ViewGrid::constructionFinished() { @@ -141,8 +141,8 @@ void ViewGrid::constructionFinished() { void ViewGrid::refreshVolumeLevels() { // kdDebug(67100) << "ViewGrid::refreshVolumeLevels()\n"; - m_tqsizeHint.setWidth (0); - m_tqsizeHint.setHeight(0); + m_sizeHint.setWidth (0); + m_sizeHint.setHeight(0); m_testingX = 0; m_testingY = 0; @@ -182,8 +182,8 @@ void ViewGrid::refreshVolumeLevels() { after hiding/showing channels. */ void ViewGrid::configurationUpdate() { - m_tqsizeHint.setWidth (0); - m_tqsizeHint.setHeight(0); + m_sizeHint.setWidth (0); + m_sizeHint.setHeight(0); m_testingX = 0; m_testingY = 0; @@ -195,9 +195,9 @@ void ViewGrid::configurationUpdate() { int xPos = m_testingX * m_spacingHorizontal; int yPos = m_testingY * m_spacingVertical ; mdw->move( xPos, yPos ); - mdw->resize( mdw->tqsizeHint() ); - int xMax = xPos + mdw->width() ; if ( xMax > m_tqsizeHint.width() ) m_tqsizeHint.setWidth(xMax); - int yMax = yPos + mdw->height(); if ( yMax > m_tqsizeHint.height() ) m_tqsizeHint.setHeight(yMax); + mdw->resize( mdw->sizeHint() ); + int xMax = xPos + mdw->width() ; if ( xMax > m_sizeHint.width() ) m_sizeHint.setWidth(xMax); + int yMax = yPos + mdw->height(); if ( yMax > m_sizeHint.height() ) m_sizeHint.setHeight(yMax); m_testingX += 5; if ( m_testingX > 50 ) { |