From 921ab2202dfb7cbe546768fc41a34a78653adf18 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Fri, 27 Dec 2019 14:56:14 -0500 Subject: [PATCH] Added images for dial control --- CMakeLists.txt | 1 + images.qrc | 6 ++++++ js8call.pro | 3 ++- mainwindow.ui | 29 +++++++++++++++++++++++++++-- 4 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 images.qrc diff --git a/CMakeLists.txt b/CMakeLists.txt index ff15c81..df08e23 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1041,6 +1041,7 @@ add_executable (js8call MACOSX_BUNDLE wsjtx.rc ${WSJTX_ICON_FILE} ${wsjtx_RESOURCES_RCC} + images.qrc ) if (WSJT_CREATE_WINMAIN) diff --git a/images.qrc b/images.qrc new file mode 100644 index 0000000..f215a51 --- /dev/null +++ b/images.qrc @@ -0,0 +1,6 @@ + + + artwork/up.png + artwork/down.png + + diff --git a/js8call.pro b/js8call.pro index 722e710..ace9de8 100644 --- a/js8call.pro +++ b/js8call.pro @@ -149,7 +149,8 @@ FORMS += mainwindow.ui about.ui Configuration.ui widegraph.ui astro.ui \ messagewindow.ui RC_FILE = wsjtx.rc -RESOURCES = wsjtx.qrc +RESOURCES = wsjtx.qrc \ + images.qrc unix { LIBS += -L lib -ljt9 diff --git a/mainwindow.ui b/mainwindow.ui index b66185a..551ccf3 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -255,8 +255,22 @@ 30 + + false + + + QPushButton { + background-color:#000; + background-image:url("/images/up.png"); + background-position: center center; + background-repeate:no-repeat; +} + - ^ + + + + true @@ -268,8 +282,19 @@ 30 + + QPushButton { + background-color:#000; + background-image:url("/images/down.png"); + background-position: center center; + background-repeate:no-repeat; +} + - v + + + + true