Skip to content

Commit

Permalink
tray monitor: port to qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz authored and franku committed Oct 2, 2018
1 parent eed9ddc commit 7225e69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 6 additions & 3 deletions core/src/qt-tray-monitor/CMakeLists.txt
Expand Up @@ -29,8 +29,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)


find_package(Qt4 REQUIRED)
find_package(Qt5 COMPONENTS Core Widgets REQUIRED)

IF(HAVE_WIN32)
include_directories(
Expand All @@ -50,14 +49,18 @@ IF(HAVE_WIN32)
LIST(APPEND SOURCES ../win32/qt-tray-monitor/traymon.rc)
ENDIF()

set(TRAYMON_LIBRARIES bareos-tray-monitor Qt4::QtGui bareos)

set(TRAYMON_LIBRARIES bareos-tray-monitor bareos)


IF(HAVE_WIN32)
add_executable(bareos-tray-monitor WIN32 ${SOURCES} main.qrc)
ELSE()
add_executable(bareos-tray-monitor ${SOURCES} main.qrc)
ENDIF()

qt5_use_modules(bareos-tray-monitor Widgets)

target_link_libraries(${TRAYMON_LIBRARIES})

INSTALL(TARGETS bareos-tray-monitor DESTINATION "${bindir}")
Expand Down
3 changes: 1 addition & 2 deletions core/src/qt-tray-monitor/traymenu.cc
Expand Up @@ -46,8 +46,7 @@ void TrayMenu::createAction(QString objName, QString text, QWidget* mainWindow)
{
const QString& translate = QApplication::translate("TrayMonitor",
text.toUtf8(),
0,
QApplication::UnicodeUTF8);
0);

QAction *action = new QAction(translate, mainWindow);

Expand Down

0 comments on commit 7225e69

Please sign in to comment.