summaryrefslogtreecommitdiffstats
path: root/adept/libadept/desktoplist.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:03:32 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:03:32 -0600
commitdb02bba0ad6dfd6e15fd11bf7979dbc60e0aeb3b (patch)
treea9813ee0807c2592f02b1ca7c09379bb4326294b /adept/libadept/desktoplist.cpp
parent5491e8ebc41db9c0ff2ec86a66f73524dee0d4e4 (diff)
downloadadept-db02bba0ad6dfd6e15fd11bf7979dbc60e0aeb3b.tar.gz
adept-db02bba0ad6dfd6e15fd11bf7979dbc60e0aeb3b.zip
Rename obsolete tq methods to standard names
Diffstat (limited to 'adept/libadept/desktoplist.cpp')
-rw-r--r--adept/libadept/desktoplist.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/adept/libadept/desktoplist.cpp b/adept/libadept/desktoplist.cpp
index c522ff2..fe35fcd 100644
--- a/adept/libadept/desktoplist.cpp
+++ b/adept/libadept/desktoplist.cpp
@@ -27,16 +27,16 @@ DesktopEntry::DesktopEntry( TQWidget *p, const char *n )
void DesktopEntry::resize( int w, int h )
{
// kdDebug() << "DesktopEntry::resize( " << w << ", " << h << " )" << endl;
- int margin = tqlayout()->margin() + tqlayout()->spacing() * 2
+ int margin = layout()->margin() + layout()->spacing() * 2
+ 6 /* spacer */ + m_icon->width() + m_check->width();
- if ( m_check->isVisible() ) margin += m_check->width() + tqlayout()->spacing();
+ if ( m_check->isVisible() ) margin += m_check->width() + layout()->spacing();
int hFW1 = m_name->heightForWidth( w - margin );
int hFW2 = m_description->heightForWidth( w - margin );
/* kdDebug() << "margin = " << margin << ", hFW1 = " << hFW1 << ", hFW2 = "
<< hFW2 << endl; */
- int height = 2 * tqlayout()->margin() + tqlayout()->spacing() + hFW1 + hFW2;
- if ( height < 32 + 2*tqlayout()->margin() /* icon size + margin */ )
- height = 32 + 2*tqlayout()->margin();
+ int height = 2 * layout()->margin() + layout()->spacing() + hFW1 + hFW2;
+ if ( height < 32 + 2*layout()->margin() /* icon size + margin */ )
+ height = 32 + 2*layout()->margin();
// m_description->resize( w - margin, m_description->heightForWidth( w - margin ) );
TQWidget::resize( w, height );
}