mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-23 13:42:55 +08:00
libuse callback function set stdcall mode, add app logo
This commit is contained in:
parent
0e5fed0855
commit
d6c126c33e
BIN
DSView.icns
Normal file
BIN
DSView.icns
Normal file
Binary file not shown.
@ -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
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include <libsigrokdecode4DSL/libsigrokdecode.h>
|
||||
#include <QDir>
|
||||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
|
||||
#include "devicemanager.h"
|
||||
#include "sigsession.h"
|
||||
|
@ -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
1
applogo.rc
Normal file
@ -0,0 +1 @@
|
||||
IDI_ICON1 ICON DISCARDABLE "DSView.icns"
|
@ -375,4 +375,9 @@ RESOURCES += \
|
||||
|
||||
ICON = DSView.icns
|
||||
|
||||
RC_FILE += ../applogo.rc
|
||||
|
||||
MOC_DIR = ../../DSView_tmp/DSView_moc
|
||||
|
||||
DISTFILES += \
|
||||
../applogo.rc
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user