summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:04:42 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:04:42 -0600
commitaab6b7485c28bc6ee2805a389c2560cda1d24d21 (patch)
tree20635bab0290ad55a667c2f7ca2b6e516b7b68a7
parent5599badf00624db6b9cecd7a00971f8c2387b73c (diff)
downloadkima-aab6b748.tar.gz
kima-aab6b748.zip
Rename obsolete tq methods to standard names
-rw-r--r--src/flowlayout.cpp4
-rw-r--r--src/flowlayout.h4
-rw-r--r--src/kima.cpp4
-rw-r--r--src/kima.h2
-rw-r--r--src/sources/labelsourcePrefs.cpp28
-rw-r--r--src/sources/labelsourcePrefs.ui6
-rw-r--r--src/sources/source.cpp4
-rw-r--r--src/sources/source.h8
8 files changed, 30 insertions, 30 deletions
diff --git a/src/flowlayout.cpp b/src/flowlayout.cpp
index 96756fa..13490cf 100644
--- a/src/flowlayout.cpp
+++ b/src/flowlayout.cpp
@@ -156,7 +156,7 @@ bool FlowLayout::moveItem(const TQLayoutItem* which, const TQLayoutItem* relate,
newPos += direction;
// actually reinsert the item
mLayoutItems.insert(newPos, which);
- activate(); // retqlayout
+ activate(); // relayout
// kdDebug() << "oldPos: " << oldPos << ", newPos: " << newPos << endl;
return true;
}
@@ -271,7 +271,7 @@ int FlowLayout::doLayoutHorizontal( const TQRect& rect, bool testOnly ){
for(TQLayoutItem* item = column.first(); item; item = column.next()){
rWidth = TQMAX( rWidth, item->widget()->sizeHint().width() );
}
- // retqlayout the items of the former column
+ // relayout the items of the former column
int space = (rect.height() - height) / (column.count() + 1);
int i = 0; // counts the items of this column
for(TQLayoutItem* item = column.first(); item; item = column.next()){
diff --git a/src/flowlayout.h b/src/flowlayout.h
index d0871e9..eebf5e3 100644
--- a/src/flowlayout.h
+++ b/src/flowlayout.h
@@ -49,7 +49,7 @@ public:
void addSource(Source* src);
void remove(TQWidget* widget);
/**
- * Returns the number of items in the tqlayout
+ * Returns the number of items in the layout
*/
uint count();
/**
@@ -84,7 +84,7 @@ private:
int doLayoutVertical( const TQRect&, bool testOnly );
Qt::Orientation mOrientation;
TQPtrList<TQLayoutItem> mLayoutItems;
- // this is the connection between a tqlayout item and its source.
+ // this is the connection between a layout item and its source.
TQMap<TQLayoutItem*, Source*> mSources;
TQLayoutItem* mLastItem; // the item that was last added
};
diff --git a/src/kima.cpp b/src/kima.cpp
index bb63a69..b19c9f0 100644
--- a/src/kima.cpp
+++ b/src/kima.cpp
@@ -99,7 +99,7 @@ Kima::Kima(const TQString& inConfigFile, Type inType, int inActions, TQWidget* i
// automatically delete pointers
mSources.setAutoDelete(TRUE);
- // create tqlayout
+ // create layout
mLayout = new FlowLayout(this, orientation() );
mLayout->setSpacing(8);
@@ -406,7 +406,7 @@ void Kima::registerSource(Source* source) {
// this call also emits enabledChanged
source->loadPrefs(mKConfig);
- // add the source to the tqlayout if necessary
+ // add the source to the layout if necessary
displaySource(source->isEnabled() && source->showOnApplet(), source);
// connection to add and remove sources from mLayout
diff --git a/src/kima.h b/src/kima.h
index 8560799..024af95 100644
--- a/src/kima.h
+++ b/src/kima.h
@@ -155,7 +155,7 @@ public slots:
void raiseSourcePrefsWidget(TQListViewItem* inListViewItem);
/**
- * adds or removes the given source from the display (tqlayout) of the kicker applet
+ * adds or removes the given source from the display (layout) of the kicker applet
*/
void displaySource(bool inDisplay, Source* inSource);
diff --git a/src/sources/labelsourcePrefs.cpp b/src/sources/labelsourcePrefs.cpp
index 3f32e77..8510961 100644
--- a/src/sources/labelsourcePrefs.cpp
+++ b/src/sources/labelsourcePrefs.cpp
@@ -44,36 +44,36 @@ LabelSourcePrefs::LabelSourcePrefs( TQWidget* parent, const char* name, WFlags f
taskbartitleLabel->setFont( taskbartitleLabel_font );
defaultSourcePrefsFrameLayout->addWidget( taskbartitleLabel );
- tqlayout13 = new TQHBoxLayout( 0, 0, 6, "tqlayout13");
+ layout13 = new TQHBoxLayout( 0, 0, 6, "layout13");
colorLabel = new TQLabel( defaultSourcePrefsFrame, "colorLabel" );
- tqlayout13->addWidget( colorLabel );
+ layout13->addWidget( colorLabel );
colorButton = new KColorButton( defaultSourcePrefsFrame, "colorButton" );
- tqlayout13->addWidget( colorButton );
+ layout13->addWidget( colorButton );
spacer1 = new TQSpacerItem( 350, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- tqlayout13->addItem( spacer1 );
- defaultSourcePrefsFrameLayout->addLayout( tqlayout13 );
+ layout13->addItem( spacer1 );
+ defaultSourcePrefsFrameLayout->addLayout( layout13 );
- tqlayout17 = new TQHBoxLayout( 0, 0, 6, "tqlayout17");
+ layout17 = new TQHBoxLayout( 0, 0, 6, "layout17");
fontLabel = new TQLabel( defaultSourcePrefsFrame, "fontLabel" );
- tqlayout17->addWidget( fontLabel );
+ layout17->addWidget( fontLabel );
fontRequester = new KFontRequester( defaultSourcePrefsFrame, "fontRequester" );
- tqlayout17->addWidget( fontRequester );
- defaultSourcePrefsFrameLayout->addLayout( tqlayout17 );
+ layout17->addWidget( fontRequester );
+ defaultSourcePrefsFrameLayout->addLayout( layout17 );
- tqlayout18 = new TQHBoxLayout( 0, 0, 6, "tqlayout18");
+ layout18 = new TQHBoxLayout( 0, 0, 6, "layout18");
alignmentLabel = new TQLabel( defaultSourcePrefsFrame, "alignmentLabel" );
- tqlayout18->addWidget( alignmentLabel );
+ layout18->addWidget( alignmentLabel );
alignmentComboBox = new TQComboBox( FALSE, defaultSourcePrefsFrame, "alignmentComboBox" );
- tqlayout18->addWidget( alignmentComboBox );
+ layout18->addWidget( alignmentComboBox );
spacer2 = new TQSpacerItem( 350, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- tqlayout18->addItem( spacer2 );
- defaultSourcePrefsFrameLayout->addLayout( tqlayout18 );
+ layout18->addItem( spacer2 );
+ defaultSourcePrefsFrameLayout->addLayout( layout18 );
LabelSourcePrefsLayout->addWidget( defaultSourcePrefsFrame );
languageChange();
resize( TQSize(299, 135).expandedTo(minimumSizeHint()) );
diff --git a/src/sources/labelsourcePrefs.ui b/src/sources/labelsourcePrefs.ui
index 4fe2cc1..2458413 100644
--- a/src/sources/labelsourcePrefs.ui
+++ b/src/sources/labelsourcePrefs.ui
@@ -55,7 +55,7 @@ Taskbar visual settings</string>
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout13</cstring>
+ <cstring>layout13</cstring>
</property>
<hbox>
<property name="name">
@@ -98,7 +98,7 @@ Taskbar visual settings</string>
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout17</cstring>
+ <cstring>layout17</cstring>
</property>
<hbox>
<property name="name">
@@ -121,7 +121,7 @@ Taskbar visual settings</string>
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout18</cstring>
+ <cstring>layout18</cstring>
</property>
<hbox>
<property name="name">
diff --git a/src/sources/source.cpp b/src/sources/source.cpp
index 20885b0..18d801c 100644
--- a/src/sources/source.cpp
+++ b/src/sources/source.cpp
@@ -107,7 +107,7 @@ TQWidget* Source::createPrefs(TQWidget* inParent){
createSubPrefs(mSourcePrefs);
// add bottom vspacer
- mSourcePrefs->tqlayout()->addItem(new TQSpacerItem(0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding) );
+ mSourcePrefs->layout()->addItem(new TQSpacerItem(0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding) );
updatePrefsGUI(); // fill the prefs gui
}
@@ -140,7 +140,7 @@ void Source::setPrefsWidgetsEnabled(bool isEnabled, bool isShownOnApplet){
void Source::addPrefs(TQWidget* inParent){
if(inParent != NULL)
- mSourcePrefs->tqlayout()->add(inParent);
+ mSourcePrefs->layout()->add(inParent);
}
void Source::applyPrefs(){
diff --git a/src/sources/source.h b/src/sources/source.h
index 6ae53c5..40e1033 100644
--- a/src/sources/source.h
+++ b/src/sources/source.h
@@ -48,12 +48,12 @@ public:
const TQString& getID() const;
/**
- * Returns the position of this source in the tqlayout
+ * Returns the position of this source in the layout
*/
int getPosition() const;
/**
- * Sets the position of this source in the tqlayout
+ * Sets the position of this source in the layout
*/
void setPosition(int inPosition, KConfig* inKConfig);
@@ -147,7 +147,7 @@ signals:
*/
void enabledChanged(bool inEnabled, Source* inSource); // needed by kima.cpp to add sources to its tqlayout
/**
- * This signal is emitted whenever this Source should be added or removed from the display (tqlayout) of the kicker applet
+ * This signal is emitted whenever this Source should be added or removed from the display (layout) of the kicker applet
*/
void displaySource(bool inDisplay, Source* inSource);
@@ -179,7 +179,7 @@ protected:
*/
TQString mID;
/**
- * The Position of the source in the tqlayout
+ * The Position of the source in the layout
*/
int mPosition;
/**