summaryrefslogtreecommitdiffstats
path: root/lilo-config/kde-qt-common
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:28:18 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:28:18 -0600
commitb836ed566cdce05ae8408705487cd10a423f3a90 (patch)
treeb37e97e4b5b83e83ba02c8e8db096303faff99bf /lilo-config/kde-qt-common
parent377fa3a2775cdb3194315bb83e21744dc7c97bbf (diff)
downloadtdeadmin-b836ed566cdce05ae8408705487cd10a423f3a90.tar.gz
tdeadmin-b836ed566cdce05ae8408705487cd10a423f3a90.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'lilo-config/kde-qt-common')
-rw-r--r--lilo-config/kde-qt-common/EditWidget.cpp34
-rw-r--r--lilo-config/kde-qt-common/EditWidget.h6
2 files changed, 20 insertions, 20 deletions
diff --git a/lilo-config/kde-qt-common/EditWidget.cpp b/lilo-config/kde-qt-common/EditWidget.cpp
index 3c80d2a..3b096cd 100644
--- a/lilo-config/kde-qt-common/EditWidget.cpp
+++ b/lilo-config/kde-qt-common/EditWidget.cpp
@@ -42,7 +42,7 @@ EditWidget::EditWidget(TQString const label, TQString const text, bool isFile, T
if(isFile) {
select=new TQPushButton(_("Select..."), this);
connect(select, TQT_SIGNAL(clicked()), TQT_SLOT(selectFileClicked()));
- select->resize(select->tqminimumSizeHint());
+ select->resize(select->minimumSizeHint());
setStretchFactor(select, 0);
} else
select=0;
@@ -53,29 +53,29 @@ void EditWidget::selectFileClicked()
if(!filename.isEmpty())
line->setText(filename);
}
-TQSize EditWidget::tqsizeHint() const
+TQSize EditWidget::sizeHint() const
{
- int w=2*SPACE_MARGIN+lbl->tqsizeHint().width()+SPACE_INSIDE+line->tqsizeHint().width();
- int h=lbl->tqsizeHint().height();
- if(h<line->tqsizeHint().height())
- h=line->tqsizeHint().height();
+ int w=2*SPACE_MARGIN+lbl->sizeHint().width()+SPACE_INSIDE+line->sizeHint().width();
+ int h=lbl->sizeHint().height();
+ if(h<line->sizeHint().height())
+ h=line->sizeHint().height();
if(select!=0) {
- w+=SPACE_INSIDE+select->tqsizeHint().width();
- if(h<select->tqsizeHint().height())
- h=select->tqsizeHint().height();
+ w+=SPACE_INSIDE+select->sizeHint().width();
+ if(h<select->sizeHint().height())
+ h=select->sizeHint().height();
}
return TQSize(w, h);
}
-TQSize EditWidget::tqminimumSizeHint() const
+TQSize EditWidget::minimumSizeHint() const
{
- int w=2*SPACE_MARGIN+lbl->tqminimumSizeHint().width()+SPACE_INSIDE+line->tqminimumSizeHint().width();
- int h=lbl->tqminimumSizeHint().height();
- if(h<line->tqminimumSizeHint().height())
- h=line->tqminimumSizeHint().height();
+ int w=2*SPACE_MARGIN+lbl->minimumSizeHint().width()+SPACE_INSIDE+line->minimumSizeHint().width();
+ int h=lbl->minimumSizeHint().height();
+ if(h<line->minimumSizeHint().height())
+ h=line->minimumSizeHint().height();
if(select!=0) {
- w+=SPACE_INSIDE+select->tqminimumSizeHint().width();
- if(h<select->tqminimumSizeHint().height())
- h=select->tqminimumSizeHint().height();
+ w+=SPACE_INSIDE+select->minimumSizeHint().width();
+ if(h<select->minimumSizeHint().height())
+ h=select->minimumSizeHint().height();
}
return TQSize(w, h);
}
diff --git a/lilo-config/kde-qt-common/EditWidget.h b/lilo-config/kde-qt-common/EditWidget.h
index e0901f9..b781cf2 100644
--- a/lilo-config/kde-qt-common/EditWidget.h
+++ b/lilo-config/kde-qt-common/EditWidget.h
@@ -58,7 +58,7 @@ public:
void cut() { line->cut(); };
void copy() const { line->copy(); };
void paste() { line->paste(); };
- void tqsetAlignment(int flag) { line->tqsetAlignment(flag); };
+ void setAlignment(int flag) { line->setAlignment(flag); };
int tqalignment() const { return line->tqalignment(); };
void cursorLeft(bool mark, int steps=1) { line->cursorLeft(mark, steps); };
void cursorRight(bool mark, int steps=1) { line->cursorRight(mark, steps); };
@@ -72,8 +72,8 @@ public:
bool edited() const { return line->edited(); };
bool hasMarkedText() const { return line->hasMarkedText(); };
TQString markedText() const { return line->markedText(); };
- virtual TQSize tqsizeHint() const;
- virtual TQSize tqminimumSizeHint() const;
+ virtual TQSize sizeHint() const;
+ virtual TQSize minimumSizeHint() const;
public slots:
virtual void setText(const TQString &text) { line->setText(text); };
void selectAll() { line->selectAll(); };