diff options
author | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2009-08-13 13:54:51 (GMT) |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2009-08-13 13:54:51 (GMT) |
commit | b4db217bf195bda7ade32bda79be65b5d31e1c0e (patch) | |
tree | ef8e7a349486e852b77fc6ade704876e564fad1b /tools | |
parent | a55a7e06727610683a61461adfd144046d669b46 (diff) | |
download | Qt-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')
-rw-r--r-- | tools/assistant/compat/mainwindow.cpp | 2 | ||||
-rw-r--r-- | tools/assistant/tools/assistant/remotecontrol.cpp | 6 |
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); |