mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-02-02 13:52: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;
|
const char *open_file = NULL;
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0)
|
#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_EnableHighDpiScaling);
|
||||||
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
#endif // QT_VERSION
|
#endif // QT_VERSION
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include <libsigrokdecode4DSL/libsigrokdecode.h>
|
#include <libsigrokdecode4DSL/libsigrokdecode.h>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
#include "devicemanager.h"
|
#include "devicemanager.h"
|
||||||
#include "sigsession.h"
|
#include "sigsession.h"
|
||||||
|
@ -321,7 +321,7 @@ private:
|
|||||||
// thread for hotplug
|
// thread for hotplug
|
||||||
void hotplug_proc();
|
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);
|
libusb_hotplug_event event, void *user_data);
|
||||||
|
|
||||||
public:
|
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
|
ICON = DSView.icns
|
||||||
|
|
||||||
|
RC_FILE += ../applogo.rc
|
||||||
|
|
||||||
MOC_DIR = ../../DSView_tmp/DSView_moc
|
MOC_DIR = ../../DSView_tmp/DSView_moc
|
||||||
|
|
||||||
|
DISTFILES += \
|
||||||
|
../applogo.rc
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE QtCreatorProject>
|
<!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>
|
<qtcreator>
|
||||||
<data>
|
<data>
|
||||||
<variable>EnvironmentId</variable>
|
<variable>EnvironmentId</variable>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user