summaryrefslogtreecommitdiffstats
path: root/kdeui
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-06 01:10:20 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-06-02 19:04:48 +0200
commit4418657ced76d97d20c3a4aeb79fefccdbd6ad7b (patch)
treef82b582603d8b791465315403bdb518f1793008d /kdeui
parentab32d1dcfb2ee4c59ee3cfdc697adfb717ea91b9 (diff)
downloadtdelibs-4418657ced76d97d20c3a4aeb79fefccdbd6ad7b.tar.gz
tdelibs-4418657ced76d97d20c3a4aeb79fefccdbd6ad7b.zip
Rename tqsetSizePolicy to fix bindings
(cherry picked from commit d5b3ae721dc072e0c70055313de9b5228b6688a8)
Diffstat (limited to 'kdeui')
-rw-r--r--kdeui/kbugreport.cpp2
-rw-r--r--kdeui/keditlistbox.cpp2
-rw-r--r--kdeui/kpushbutton.cpp2
-rw-r--r--kdeui/ksqueezedtextlabel.cpp4
-rw-r--r--kdeui/kurllabel.cpp4
-rw-r--r--kdeui/kurllabel.h2
-rw-r--r--kdeui/tests/kcomboboxtest.cpp10
7 files changed, 13 insertions, 13 deletions
diff --git a/kdeui/kbugreport.cpp b/kdeui/kbugreport.cpp
index 0e0f6450d..38daf0e4b 100644
--- a/kdeui/kbugreport.cpp
+++ b/kdeui/kbugreport.cpp
@@ -259,7 +259,7 @@ KBugReport::KBugReport( TQWidget * parentw, bool modal, const KAboutData *aboutD
updateURL();
d->submitBugButton->setText( i18n("&Launch Bug Report Wizard") );
- d->submitBugButton->tqsetSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed);
+ d->submitBugButton->setSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed);
lay->addWidget( d->submitBugButton );
lay->addSpacing(10);
diff --git a/kdeui/keditlistbox.cpp b/kdeui/keditlistbox.cpp
index 81277ed55..040e77c70 100644
--- a/kdeui/keditlistbox.cpp
+++ b/kdeui/keditlistbox.cpp
@@ -79,7 +79,7 @@ void KEditListBox::init( bool checkAtEntering, int buttons,
d->m_checkAtEntering = checkAtEntering;
servNewButton = servRemoveButton = servUpButton = servDownButton = 0L;
- tqsetSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding,
+ setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding,
TQSizePolicy::MinimumExpanding));
TQGridLayout * grid = new TQGridLayout(this, 7, 2,
diff --git a/kdeui/kpushbutton.cpp b/kdeui/kpushbutton.cpp
index 57011da3b..07127cdc8 100644
--- a/kdeui/kpushbutton.cpp
+++ b/kdeui/kpushbutton.cpp
@@ -98,7 +98,7 @@ void KPushButton::init( const KGuiItem &item )
setIconSet( d->item.iconSet() );
- tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) );
+ setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) );
TQToolTip::add( this, item.toolTip() );
diff --git a/kdeui/ksqueezedtextlabel.cpp b/kdeui/ksqueezedtextlabel.cpp
index fc2ea9660..63d85ab8f 100644
--- a/kdeui/ksqueezedtextlabel.cpp
+++ b/kdeui/ksqueezedtextlabel.cpp
@@ -22,14 +22,14 @@
KSqueezedTextLabel::KSqueezedTextLabel( const TQString &text , TQWidget *parent, const char *name )
: TQLabel ( parent, name ) {
- tqsetSizePolicy(TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ));
+ setSizePolicy(TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ));
fullText = text;
squeezeTextToLabel();
}
KSqueezedTextLabel::KSqueezedTextLabel( TQWidget *parent, const char *name )
: TQLabel ( parent, name ) {
- tqsetSizePolicy(TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ));
+ setSizePolicy(TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ));
}
void KSqueezedTextLabel::resizeEvent( TQResizeEvent * ) {
diff --git a/kdeui/kurllabel.cpp b/kdeui/kurllabel.cpp
index 9846059ed..f9f5591ce 100644
--- a/kdeui/kurllabel.cpp
+++ b/kdeui/kurllabel.cpp
@@ -436,9 +436,9 @@ void KURLLabel::setFocusPolicy( TQ_FocusPolicy policy )
}
}
-void KURLLabel::tqsetSizePolicy ( TQSizePolicy policy )
+void KURLLabel::setSizePolicy ( TQSizePolicy policy )
{
- TQLabel::tqsetSizePolicy(policy);
+ TQLabel::setSizePolicy(policy);
if (!d->MarginAltered && policy.horData()==TQSizePolicy::Fixed && policy.verData()==TQSizePolicy::Fixed) {
TQLabel::setMargin(0); //better default : better look when fixed size
}
diff --git a/kdeui/kurllabel.h b/kdeui/kurllabel.h
index 5563f77ba..25de723ee 100644
--- a/kdeui/kurllabel.h
+++ b/kdeui/kurllabel.h
@@ -169,7 +169,7 @@ public:
/**
* Reimplemented for internal reasons, the API is not affected.
*/
- virtual void tqsetSizePolicy ( TQSizePolicy );
+ virtual void setSizePolicy ( TQSizePolicy );
public slots:
/**
diff --git a/kdeui/tests/kcomboboxtest.cpp b/kdeui/tests/kcomboboxtest.cpp
index e8fd35f7e..44b849b44 100644
--- a/kdeui/tests/kcomboboxtest.cpp
+++ b/kdeui/tests/kcomboboxtest.cpp
@@ -36,7 +36,7 @@ KComboBoxTest::KComboBoxTest(TQWidget* widget, const char* name )
TQHBox* hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint());
TQLabel* lbl = new TQLabel("&QCombobox:", hbox);
- lbl->tqsetSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
+ lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_qc = new TQComboBox(hbox, "QtReadOnlyCombo" );
lbl->setBuddy (m_qc);
@@ -48,7 +48,7 @@ KComboBoxTest::KComboBoxTest(TQWidget* widget, const char* name )
hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint());
lbl = new TQLabel("&Read-Only Combo:", hbox);
- lbl->tqsetSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
+ lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_ro = new KComboBox(hbox, "ReadOnlyCombo" );
lbl->setBuddy (m_ro);
@@ -61,7 +61,7 @@ KComboBoxTest::KComboBoxTest(TQWidget* widget, const char* name )
hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint());
lbl = new TQLabel("&Editable Combo:", hbox);
- lbl->tqsetSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
+ lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_rw = new KComboBox( true, hbox, "ReadWriteCombo" );
lbl->setBuddy (m_rw);
@@ -78,7 +78,7 @@ KComboBoxTest::KComboBoxTest(TQWidget* widget, const char* name )
hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint());
lbl = new TQLabel("&History Combo:", hbox);
- lbl->tqsetSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
+ lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_hc = new KHistoryCombo( true, hbox, "HistoryCombo" );
lbl->setBuddy (m_hc);
@@ -94,7 +94,7 @@ KComboBoxTest::KComboBoxTest(TQWidget* widget, const char* name )
hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint());
lbl = new TQLabel( "&Konq's Combo:", hbox);
- lbl->tqsetSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
+ lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_konqc = new KComboBox( true, hbox, "KonqyCombo" );
lbl->setBuddy (m_konqc);