summaryrefslogtreecommitdiffstats
path: root/adept/libadept/desktoplist.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:29:02 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:29:02 -0600
commit6f68fa9893e2ca340db11876e6516dbfab002a6d (patch)
tree2564f3d603677ac5d9b067e20d00837c4bc8aca5 /adept/libadept/desktoplist.cpp
parentc80b6f4a9eb26a7ed0d5262a5d71dcf3b8ea6aff (diff)
downloadadept-6f68fa9893e2ca340db11876e6516dbfab002a6d.tar.gz
adept-6f68fa9893e2ca340db11876e6516dbfab002a6d.zip
Rename a number of old tq methods that are no longer tq specific
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 );
}