mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-03 16:45:24 +08:00
update
This commit is contained in:
@ -261,16 +261,16 @@ FluContentPage{
|
||||
FluComboBox {
|
||||
anchors.fill: parent
|
||||
focus: true
|
||||
currentIndex: display
|
||||
editText: display
|
||||
editable: true
|
||||
model: ListModel {
|
||||
ListElement { text: 100 }
|
||||
ListElement { text: 300 }
|
||||
ListElement { text: 500 }
|
||||
ListElement { text: 1000 }
|
||||
ListElement { text: "100" }
|
||||
ListElement { text: "300" }
|
||||
ListElement { text: "500" }
|
||||
ListElement { text: "1000" }
|
||||
}
|
||||
Component.onCompleted: {
|
||||
currentIndex=[100,300,500,1000].findIndex((element) => element === Number(display))
|
||||
currentIndex=["100","300","500","1000"].findIndex((element) => element === display)
|
||||
selectAll()
|
||||
}
|
||||
onCommit: {
|
||||
|
@ -261,16 +261,16 @@ FluContentPage{
|
||||
FluComboBox {
|
||||
anchors.fill: parent
|
||||
focus: true
|
||||
currentIndex: display
|
||||
editText: display
|
||||
editable: true
|
||||
model: ListModel {
|
||||
ListElement { text: 100 }
|
||||
ListElement { text: 300 }
|
||||
ListElement { text: 500 }
|
||||
ListElement { text: 1000 }
|
||||
ListElement { text: "100" }
|
||||
ListElement { text: "300" }
|
||||
ListElement { text: "500" }
|
||||
ListElement { text: "1000" }
|
||||
}
|
||||
Component.onCompleted: {
|
||||
currentIndex=[100,300,500,1000].findIndex((element) => element === Number(display))
|
||||
currentIndex=["100","300","500","1000"].findIndex((element) => element === display)
|
||||
selectAll()
|
||||
}
|
||||
onCommit: {
|
||||
|
@ -207,8 +207,3 @@ void Log::setup(const QString &app,int level)
|
||||
qInfo()<<"[LOG_PATH]"<<g_file_path;
|
||||
qInfo()<<"===================================================";
|
||||
}
|
||||
|
||||
void Log::teardown()
|
||||
{
|
||||
qInstallMessageHandler(0);
|
||||
}
|
||||
|
@ -6,7 +6,6 @@ namespace Log
|
||||
{
|
||||
QString prettyProductInfoWrapper();
|
||||
void setup(const QString &app,int level = 4);
|
||||
void teardown();
|
||||
}
|
||||
|
||||
#endif // LOG_H
|
||||
|
@ -82,6 +82,5 @@ int main(int argc, char *argv[])
|
||||
if (exec == 931) {
|
||||
QProcess::startDetached(qApp->applicationFilePath(), QStringList());
|
||||
}
|
||||
Log::teardown();
|
||||
return exec;
|
||||
}
|
||||
|
Reference in New Issue
Block a user