summaryrefslogtreecommitdiffstats
path: root/src/basketproperties.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:29:20 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:29:20 -0600
commit882bcd26b3d60be72ea2b35921969a9850c52db9 (patch)
tree8d0a6902c5de4632c4e73e35c4d86404fa75f470 /src/basketproperties.cpp
parentc82058b2b64334c10d7e547cb81ac64efe09f516 (diff)
downloadbasket-882bcd26b3d60be72ea2b35921969a9850c52db9.tar.gz
basket-882bcd26b3d60be72ea2b35921969a9850c52db9.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/basketproperties.cpp')
-rw-r--r--src/basketproperties.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/basketproperties.cpp b/src/basketproperties.cpp
index fa5a3a2..43e58d6 100644
--- a/src/basketproperties.cpp
+++ b/src/basketproperties.cpp
@@ -24,7 +24,7 @@
#include <tqvbuttongroup.h>
#include <knuminput.h>
#include <kkeybutton.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlabel.h>
#include <tqbuttongroup.h>
#include <tqradiobutton.h>
@@ -56,7 +56,7 @@ BasketPropertiesDialog::BasketPropertiesDialog(Basket *basket, TQWidget *parent)
m_icon->setIconType(KIcon::NoGroup, KIcon::Action);
m_icon->setIconSize(16);
m_icon->setIcon(m_basket->icon());
- int size = TQMAX(m_icon->tqsizeHint().width(), m_icon->tqsizeHint().height());
+ int size = TQMAX(m_icon->sizeHint().width(), m_icon->sizeHint().height());
m_icon->setFixedSize(size, size); // Make it square!
TQToolTip::add(m_icon, i18n("Icon"));
m_name = new TQLineEdit(m_basket->basketName(), page);
@@ -99,8 +99,8 @@ BasketPropertiesDialog::BasketPropertiesDialog(Basket *basket, TQWidget *parent)
}
}
// m_backgroundImage->insertItem(i18n("Other..."), -1);
- int BUTTON_MARGIN = kapp->tqstyle().tqpixelMetric(TQStyle::PM_ButtonMargin);
- m_backgroundImage->setSizeLimit(50/*75 * 6 / m_backgroundImage->tqsizeHint().height()*/);
+ int BUTTON_MARGIN = kapp->tqstyle().pixelMetric(TQStyle::PM_ButtonMargin);
+ m_backgroundImage->setSizeLimit(50/*75 * 6 / m_backgroundImage->sizeHint().height()*/);
m_backgroundImage->setMinimumHeight(75 + 2 * BUTTON_MARGIN);
// Disposition:
@@ -117,8 +117,8 @@ BasketPropertiesDialog::BasketPropertiesDialog(Basket *basket, TQWidget *parent)
m_disposition->insert(radio);
new TQRadioButton(i18n("&Free-form"), m_disposition);
TQRadioButton *mindMap = new TQRadioButton(i18n("&Mind map"), m_disposition); // TODO: "Learn more..."
- int height = TQMAX(mindMap->tqsizeHint().height(), m_columnCount->tqsizeHint().height()); // Make all radioButtons vertically equaly-spaced!
- mindMap->setMinimumSize(mindMap->tqsizeHint().width(), height); // Because the m_columnCount can be heigher, and make radio1 and radio2 more spaced than radio2 and radio3.
+ int height = TQMAX(mindMap->sizeHint().height(), m_columnCount->sizeHint().height()); // Make all radioButtons vertically equaly-spaced!
+ mindMap->setMinimumSize(mindMap->sizeHint().width(), height); // Because the m_columnCount can be heigher, and make radio1 and radio2 more spaced than radio2 and radio3.
m_disposition->setButton(m_basket->isFreeLayout() ? (m_basket->isMindMap() ? 2 : 1) : 0);
topLayout->addWidget(m_disposition);