summaryrefslogtreecommitdiffstats
path: root/parts/filecreate/filecreate_widget2.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /parts/filecreate/filecreate_widget2.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/filecreate/filecreate_widget2.cpp')
-rw-r--r--parts/filecreate/filecreate_widget2.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/parts/filecreate/filecreate_widget2.cpp b/parts/filecreate/filecreate_widget2.cpp
index 10816904..5c39393b 100644
--- a/parts/filecreate/filecreate_widget2.cpp
+++ b/parts/filecreate/filecreate_widget2.cpp
@@ -67,7 +67,7 @@ namespace FileCreate {
else kdDebug(9034) << "No match!" << endl;
}
- // If an exact match is not found (e.g. current points to a 'parent' type) then
+ // If an exact match is not found (e.g. current points to a 'tqparent' type) then
// look instead for an extension match
if (changeToRow==-1) {
for(it = typeForRow.begin(); it!= typeForRow.end() && changeToRow==-1; ++it) {
@@ -164,7 +164,7 @@ namespace FileCreate {
return;
}
- m_selected = typeForRow.contains(row) ? typeForRow[row] : NULL;
+ m_selected = typeForRow.tqcontains(row) ? typeForRow[row] : NULL;
TQTimer::singleShot(0, this, TQT_SLOT(slotDoSelection()) );
}
@@ -191,7 +191,7 @@ namespace FileCreate {
if( !i )
continue;
- TQSize size = i->sizeHint();
+ TQSize size = i->tqsizeHint();
maxHeight = size.height()>maxHeight ? size.height() : maxHeight;
}
setRowHeight(row,maxHeight+2); // bit of extra room
@@ -206,13 +206,13 @@ namespace FileCreate {
if( !i )
continue;
- TQSize size = item(r,col)->sizeHint();
+ TQSize size = item(r,col)->tqsizeHint();
maxWidth = size.width()>maxWidth ? size.width() : maxWidth;
}
setColumnWidth(col,maxWidth+2); // bit of extra room
}
-#if QT_VERSION < 0x030100
+#if [[[TQT_VERSION IS DEPRECATED]]] < 0x030100
void FriendlyWidget::selectRow(int row) {
if (numCols()>0 && row<numRows()) {
TQTableSelection sel;