diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kexi/tests/startup/main.cpp | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/tests/startup/main.cpp')
-rw-r--r-- | kexi/tests/startup/main.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kexi/tests/startup/main.cpp b/kexi/tests/startup/main.cpp index dd2e86ce..3d97ac32 100644 --- a/kexi/tests/startup/main.cpp +++ b/kexi/tests/startup/main.cpp @@ -43,9 +43,9 @@ int main(int argc, char* argv[]) KexiTableViewData data; KexiTableViewColumn col; - col.type = QVariant::Int; col.caption = "Id"; data.addColumn( col ); - col.type = QVariant::String; col.caption = "Name"; data.addColumn( col ); - col.type = QVariant::Int; col.caption = "Age"; data.addColumn( col ); + col.type = TQVariant::Int; col.caption = "Id"; data.addColumn( col ); + col.type = TQVariant::String; col.caption = "Name"; data.addColumn( col ); + col.type = TQVariant::Int; col.caption = "Age"; data.addColumn( col ); tv.setData(&data, false); tv.show();*/ @@ -76,9 +76,9 @@ int main(int argc, char* argv[]) KexiStartupDialog startup(KexiStartupDialog::Everything, 0, connset, prj_set, 0, "dlg"); int e=startup.exec(); - kdDebug() << (e==QDialog::Accepted ? "Accepted" : "Rejected") << endl; + kdDebug() << (e==TQDialog::Accepted ? "Accepted" : "Rejected") << endl; - if (e==QDialog::Accepted) { + if (e==TQDialog::Accepted) { int r = startup.result(); if (r==KexiStartupDialog::TemplateResult) { kdDebug() << "Template key == " << startup.selectedTemplateKey() << endl; @@ -86,8 +86,8 @@ int main(int argc, char* argv[]) #if 0 KexiConnSelectorDialog sel(connset, 0,"sel"); e = sel.exec(); - kdDebug() << (e==QDialog::Accepted ? "Accepted" : "Rejected") << endl; - if (e==QDialog::Accepted) { + kdDebug() << (e==TQDialog::Accepted ? "Accepted" : "Rejected") << endl; + if (e==TQDialog::Accepted) { kdDebug() << "Selected conn. type: " << (sel.selectedConnectionType()==KexiConnSelectorWidget::FileBased ? "File based" : "Server based") << endl; if (sel.selectedConnectionType()==KexiConnSelectorWidget::ServerBased) { kdDebug() << "SERVER: " << sel.selectedConnectionData()->serverInfoString() << endl; @@ -98,7 +98,7 @@ int main(int argc, char* argv[]) } else if (r==KexiStartupDialog::OpenExistingResult) { kdDebug() << "Existing project --------" << endl; - QString selFile = startup.selectedExistingFile(); + TQString selFile = startup.selectedExistingFile(); if (!selFile.isEmpty()) kdDebug() << "Project File: " << selFile << endl; else if (startup.selectedExistingConnection()) { |