Compare commits

...

2 Commits

Author SHA1 Message Date
Jesse Qu cb3ea26553 Adjusted UI 2025-04-18 16:33:20 +08:00
Jesse Qu 6820ca6296 adjusted qstring to bool 2025-04-18 14:50:09 +08:00
3 changed files with 67 additions and 10 deletions

View File

@ -1,5 +1,4 @@
#include "logger.h"
#include "settings.h"
#include "mainwindow.h"
#include <QApplication>
@ -13,7 +12,7 @@ int main(int argc, char *argv[])
Logging::setupLogging();
// qCInfo(Application) << "Application starts 程序启动";
qCInfo(Application, "Application starts 程序启动");
Settings::instance();
qInfo("Application starts --- 程序启动");
MainWindow w;
w.show();

View File

@ -44,9 +44,9 @@ QVariant Settings::getDefaultValue(const QString& group, const QString& name)
else if(group == "Log" && name == "backups")
return 5;
else if(group == "Log" && name == "consoleOutput")
return "true";
return false;
else if(group == "Log" && name == "fileOutput")
return "true";
return true;
else
return QVariant();
}

View File

@ -6,25 +6,83 @@
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
<width>960</width>
<height>695</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget"/>
<widget class="QMenuBar" name="menubar">
<widget class="QWidget" name="centralwidget">
<widget class="QSplitter" name="splitter">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>960</width>
<height>600</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="handleWidth">
<number>4</number>
</property>
<widget class="QWidget" name="widgetViewA" native="true"/>
<widget class="QWidget" name="widgetViewB" native="true"/>
</widget>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<width>960</width>
<height>24</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
<property name="title">
<string>&amp;File</string>
</property>
<addaction name="actionAbout"/>
<addaction name="separator"/>
<addaction name="actionExit"/>
</widget>
<addaction name="menuFile"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<widget class="QStatusBar" name="statusBar"/>
<widget class="QToolBar" name="toolBar">
<property name="windowTitle">
<string>toolBar</string>
</property>
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
<addaction name="separator"/>
<addaction name="actionAbout"/>
<addaction name="actionExit"/>
</widget>
<action name="actionAbout">
<property name="icon">
<iconset theme="QIcon::ThemeIcon::HelpAbout"/>
</property>
<property name="text">
<string>&amp;About</string>
</property>
</action>
<action name="actionExit">
<property name="icon">
<iconset theme="QIcon::ThemeIcon::WindowClose"/>
</property>
<property name="text">
<string>E&amp;xit</string>
</property>
</action>
</widget>
<resources/>
<connections/>