libuse callback function set stdcall mode, add app logo

This commit is contained in:
dreamsourcelabTAI 2021-12-14 17:18:11 +08:00
parent 0e5fed0855
commit d6c126c33e
7 changed files with 10 additions and 2 deletions

BIN
DSView.icns Normal file

Binary file not shown.

View File

@ -62,6 +62,7 @@ int main(int argc, char *argv[])
const char *open_file = NULL;
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0)
//On Windows, need to compile with the QT5 version of the library, which makes the interface slightly larger.
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif // QT_VERSION

View File

@ -27,6 +27,7 @@
#include <libsigrokdecode4DSL/libsigrokdecode.h>
#include <QDir>
#include <QCoreApplication>
#include <QDebug>
#include "devicemanager.h"
#include "sigsession.h"

View File

@ -321,7 +321,7 @@ private:
// thread for hotplug
void hotplug_proc();
static int hotplug_callback(struct libusb_context *ctx, struct libusb_device *dev,
static LIBUSB_CALL int hotplug_callback(struct libusb_context *ctx, struct libusb_device *dev,
libusb_hotplug_event event, void *user_data);
public:

1
applogo.rc Normal file
View File

@ -0,0 +1 @@
IDI_ICON1 ICON DISCARDABLE "DSView.icns"

View File

@ -375,4 +375,9 @@ RESOURCES += \
ICON = DSView.icns
RC_FILE += ../applogo.rc
MOC_DIR = ../../DSView_tmp/DSView_moc
DISTFILES += \
../applogo.rc

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.11.0, 2021-12-13T14:10:07. -->
<!-- Written by QtCreator 4.11.0, 2021-12-13T18:09:39. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>