Changeset b8a2a118c4 in tspsg for src/mainwindow.cpp
- Timestamp:
- Dec 21, 2010, 2:28:51 PM (14 years ago)
- Branches:
- 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- bfe1e5e2ea
- Parents:
- 9eb63a1598
- git-author:
- Oleksii Serdiuk <contacts@…> (12/21/10 14:28:51)
- git-committer:
- Oleksii Serdiuk <contacts@…> (06/29/12 19:45:58)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mainwindow.cpp
r9eb63a1598 rb8a2a118c4 25 25 26 26 #ifdef Q_WS_WIN32 27 #include "shobjidl.h"27 # include "shobjidl.h" 28 28 #endif 29 29 … … 396 396 if (untitled) 397 397 setFileName(); 398 #if def Q_WS_WIN32398 #ifndef HANDHELD 399 399 if (QtWin::isCompositionEnabled() && settings->value("UseTranslucency", DEF_USE_TRANSLUCENCY).toBool()) { 400 400 toggleStyle(labelVariant, true); … … 610 610 connect(bb, SIGNAL(accepted()), dlg, SLOT(accept())); 611 611 612 #if def Q_WS_WIN32613 // Adding some eyecandy in Vista and 7 :-)612 #ifndef HANDHELD 613 // Adding some eyecandy 614 614 if (QtWin::isCompositionEnabled()) { 615 615 QtWin::enableBlurBehindWindow(dlg, true); 616 616 } 617 #endif // Q_WS_WIN32617 #endif // HANDHELD 618 618 619 619 dlg->resize(450, 350); … … 1030 1030 void MainWindow::solverRoutePartFound(int n) 1031 1031 { 1032 #ifdef Q_WS_WIN321033 1032 tl->SetProgressValue(winId(), n, spinCities->value() * 2); 1034 #else1035 Q_UNUSED(n);1036 #endif // Q_WS_WIN321037 1033 } 1038 1034 #endif // Q_WS_WIN32 … … 1661 1657 retranslateUi(false); 1662 1658 1663 #if def Q_WS_WIN321664 // Adding some eyecandy in Vista and 7 :-)1659 #ifndef HANDHELD 1660 // Adding some eyecandy 1665 1661 if (QtWin::isCompositionEnabled() && settings->value("UseTranslucency", DEF_USE_TRANSLUCENCY).toBool()) { 1666 1662 toggleTranclucency(true); 1667 1663 } 1668 #endif // Q_WS_WIN321664 #endif // HANDHELD 1669 1665 } 1670 1666 … … 1682 1678 void MainWindow::toggleTranclucency(bool enable) 1683 1679 { 1684 #if def Q_WS_WIN321680 #ifndef HANDHELD 1685 1681 toggleStyle(labelVariant, enable); 1686 1682 toggleStyle(labelCities, enable); … … 1690 1686 #else 1691 1687 Q_UNUSED(enable); 1692 #endif // Q_WS_WIN321688 #endif // HANDHELD 1693 1689 } 1694 1690
Note: See TracChangeset
for help on using the changeset viewer.