summaryrefslogtreecommitdiffstats
path: root/tools/assistant
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2009-08-13 13:54:51 (GMT)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2009-08-13 13:54:51 (GMT)
commitb4db217bf195bda7ade32bda79be65b5d31e1c0e (patch)
treeef8e7a349486e852b77fc6ade704876e564fad1b /tools/assistant
parenta55a7e06727610683a61461adfd144046d669b46 (diff)
downloadQt-b4db217bf195bda7ade32bda79be65b5d31e1c0e.zip
Qt-b4db217bf195bda7ade32bda79be65b5d31e1c0e.tar.gz
Qt-b4db217bf195bda7ade32bda79be65b5d31e1c0e.tar.bz2
Assistant compiles on Windows CE
no official support Task-number: 214990 Reviewed-by: kh
Diffstat (limited to 'tools/assistant')
-rw-r--r--tools/assistant/compat/mainwindow.cpp2
-rw-r--r--tools/assistant/tools/assistant/remotecontrol.cpp6
2 files changed, 8 insertions, 0 deletions
diff --git a/tools/assistant/compat/mainwindow.cpp b/tools/assistant/compat/mainwindow.cpp
index 353efdb..13b555e 100644
--- a/tools/assistant/compat/mainwindow.cpp
+++ b/tools/assistant/compat/mainwindow.cpp
@@ -401,6 +401,7 @@ QString MainWindow::urlifyFileName(const QString &fileName)
return name;
}
+#ifndef QT_NO_PRINTER
class PrintThread : public QThread
{
QPrinter _printer;
@@ -436,6 +437,7 @@ protected:
_document = 0;
}
};
+#endif //QT_NO_PRINTER
void MainWindow::on_actionFilePrint_triggered()
{
diff --git a/tools/assistant/tools/assistant/remotecontrol.cpp b/tools/assistant/tools/assistant/remotecontrol.cpp
index b72d7e8..7867ba0 100644
--- a/tools/assistant/tools/assistant/remotecontrol.cpp
+++ b/tools/assistant/tools/assistant/remotecontrol.cpp
@@ -78,6 +78,8 @@ void StdInListenerWin::run()
bool ok = true;
char chBuf[4096];
DWORD dwRead;
+
+#ifndef Q_WS_WINCE
HANDLE hStdin, hStdinDup;
hStdin = GetStdHandle(STD_INPUT_HANDLE);
@@ -89,6 +91,10 @@ void StdInListenerWin::run()
0, false, DUPLICATE_SAME_ACCESS);
CloseHandle(hStdin);
+#else
+ HANDLE hStdinDup;
+ hStdinDup = stdin;
+#endif
while (ok) {
ok = ReadFile(hStdinDup, chBuf, 4096, &dwRead, NULL);