2021-09-30 Fred Gleason <fredg@paravelsystems.com>

* Added a '--show-styles' switch to all modules.
	* Changed the default QStyle to 'Windows'.

Signed-off-by: Fred Gleason <fredg@paraelsystems.com>
This commit is contained in:
Fred Gleason
2021-09-30 20:52:14 -04:00
parent e574184d79
commit cef02342d5
3 changed files with 12 additions and 1 deletions

View File

@@ -22479,3 +22479,6 @@
* Fixed a bug in the WebGet service that could cause 'Put'
operations to return an incomplete status message to the user
when posting large files.
2021-09-30 Fred Gleason <fredg@paravelsystems.com>
* Added a '--show-styles' switch to all modules.
* Changed the default QStyle to 'Windows'.

View File

@@ -603,7 +603,7 @@
* GUI Style
* (must be one of the values returned by QStyleFactory::keys())
*/
#define RD_GUI_STYLE "Plastique"
#define RD_GUI_STYLE "Windows"
/*
* Status / Note Bubble Background Color

View File

@@ -24,6 +24,7 @@
#include <QCoreApplication>
#include <QMessageBox>
#include <QStyleFactory>
#include <rdcmd_switch.h>
@@ -47,6 +48,13 @@ RDCmdSwitch::RDCmdSwitch(const QString &modname,const QString &usage)
if(value=="-d") {
switch_debug=true;
}
if((value=="-show-styles")||(value=="--show-styles")) {
QStringList styles=QStyleFactory::keys();
for(int i=0;i<styles.size();i++) {
printf("%s\n",styles.at(i).toUtf8().constData());
}
exit(0);
}
QStringList f0=value.split("=",QString::KeepEmptyParts);
if(f0.size()>=2) {
if(f0.at(0).left(1)=="-") {