mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 12:34:19 +00:00
Update application style according to the system (WindowsXP, MacOS, X11)
This commit is contained in:
parent
59e1e0bbf0
commit
5140f42cb1
@ -12,6 +12,7 @@
|
|||||||
- FEATURE: Added Autocompletion to search engine
|
- FEATURE: Added Autocompletion to search engine
|
||||||
- FEATURE: Splitted BT & GUI parts (huge code rewriting & optimization)
|
- FEATURE: Splitted BT & GUI parts (huge code rewriting & optimization)
|
||||||
- FEATURE: New parameters for configure file to point to custom locations for libtorrent/libcurl
|
- FEATURE: New parameters for configure file to point to custom locations for libtorrent/libcurl
|
||||||
|
- FEATURE: Update application style according to the system (WindowsXP, MacOS, X11)
|
||||||
- BUGFIX: Two torrents can now have the same name although they are different (use their hash)
|
- BUGFIX: Two torrents can now have the same name although they are different (use their hash)
|
||||||
- BUGFIX: Fixed download from url that would fail sometimes
|
- BUGFIX: Fixed download from url that would fail sometimes
|
||||||
- BUGFIX: Save directory was reset to default when filtering files in torrent
|
- BUGFIX: Save directory was reset to default when filtering files in torrent
|
||||||
|
14
src/main.cpp
14
src/main.cpp
@ -27,6 +27,14 @@
|
|||||||
#include <QTcpSocket>
|
#include <QTcpSocket>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
|
|
||||||
|
#ifdef Q_WS_WIN
|
||||||
|
#include <QWindowsXPStyle>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef Q_WS_MAC
|
||||||
|
#include <QMacStyle>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "GUI.h"
|
#include "GUI.h"
|
||||||
@ -81,6 +89,12 @@ int main(int argc, char *argv[]){
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
#ifdef Q_WS_WIN
|
||||||
|
app.setStyle(new QWindowsXPStyle());
|
||||||
|
#endif
|
||||||
|
#ifdef Q_WS_MAC
|
||||||
|
app.setStyle(new QMacStyle());
|
||||||
|
#endif
|
||||||
QSplashScreen *splash = new QSplashScreen(QPixmap(":/Icons/splash.jpg"));
|
QSplashScreen *splash = new QSplashScreen(QPixmap(":/Icons/splash.jpg"));
|
||||||
splash->show();
|
splash->show();
|
||||||
// Open options file to read locale
|
// Open options file to read locale
|
||||||
|
Loading…
x
Reference in New Issue
Block a user