File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ Qt::ItemFlags CRecentModel::flags(const QModelIndex &index) const
3232 bool bExist = false ;
3333 QFileInfo fi (szFile);
3434 if (m_pParameterApp->GetGlobalParameters ()->GetSaveSettingsType ()
35- == CParameterGlobal::SaveSettingsType::Local ) {
35+ == CParameterGlobal::SaveSettingsType::LocalFile ) {
3636 bExist = fi.exists ();
3737 } else {
3838 bExist = m_pDatabase->HasFileContents (item);
Original file line number Diff line number Diff line change @@ -490,15 +490,15 @@ int MainWindow::Initial()
490490 m_pRecentMenu->addRecentFile (it->GetFile (), it->szName , it->icon );
491491 }
492492 m_pRecentMenu->slotShowFileEixst (
493- m_Parameter.GetGlobalParameters ()->GetSaveSettingsType () == CParameterGlobal::Local );
493+ m_Parameter.GetGlobalParameters ()->GetSaveSettingsType () == CParameterGlobal::LocalFile );
494494 bool check = connect (
495495 m_Parameter.GetGlobalParameters (),
496496 &CParameterGlobal::sigSaveSettingsTypeChanged,
497497 m_pRecentMenu, [this ]() {
498498 if (!(m_pRecentMenu && m_Parameter.GetGlobalParameters ()))
499499 return ;
500500 m_pRecentMenu->slotShowFileEixst (
501- m_Parameter.GetGlobalParameters ()->GetSaveSettingsType () == CParameterGlobal::Local );
501+ m_Parameter.GetGlobalParameters ()->GetSaveSettingsType () == CParameterGlobal::LocalFile );
502502 });
503503 Q_ASSERT (check);
504504 }
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ int CParameterDatabaseUI::SetParameter(CParameter *pParameter)
6666 ui->leOptions ->setText (m_pParaDB->GetOptions ());
6767
6868 switch (m_pParaGlobal->GetSaveSettingsType ()) {
69- case CParameterGlobal::SaveSettingsType::Local :
69+ case CParameterGlobal::SaveSettingsType::LocalFile :
7070 ui->rbSaveSettingsToLocal ->setChecked (true );
7171 break ;
7272 case CParameterGlobal::SaveSettingsType::Database:
@@ -116,7 +116,7 @@ int CParameterDatabaseUI::Accept()
116116 m_pParaDB->SetOptions (ui->leOptions ->text ());
117117
118118 if (ui->rbSaveSettingsToLocal ->isChecked ()) {
119- m_pParaGlobal->SetSaveSettingsType (CParameterGlobal::SaveSettingsType::Local );
119+ m_pParaGlobal->SetSaveSettingsType (CParameterGlobal::SaveSettingsType::LocalFile );
120120 } else if (ui->rbSaveSettingsToDatabase ->isChecked ()) {
121121 m_pParaGlobal->SetSaveSettingsType (CParameterGlobal::SaveSettingsType::Database);
122122 }
Original file line number Diff line number Diff line change 77 <x >0</x >
88 <y >0</y >
99 <width >550</width >
10- <height >400 </height >
10+ <height >350 </height >
1111 </rect >
1212 </property >
1313 <property name =" windowTitle" >
124124 <item >
125125 <widget class =" QRadioButton" name =" rbSaveSettingsToLocal" >
126126 <property name =" text" >
127- <string >Local</string >
127+ <string >Local file </string >
128128 </property >
129129 </widget >
130130 </item >
Original file line number Diff line number Diff line change 44CParameterGlobal::CParameterGlobal (QObject *parent, const QString &szPrefix)
55 : CParameter{parent, szPrefix}
66 , m_Database(this )
7- , m_SaveSettingsType(SaveSettingsType::Local )
7+ , m_SaveSettingsType(SaveSettingsType::LocalFile )
88{
99}
1010
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class PLUGIN_EXPORT CParameterGlobal : public CParameter
4242
4343public:
4444 enum SaveSettingsType{
45- Local ,
45+ LocalFile ,
4646 Database
4747 };
4848 SaveSettingsType GetSaveSettingsType () const ;
Original file line number Diff line number Diff line change 131131 <item row =" 2" column =" 0" >
132132 <widget class =" QGroupBox" name =" gpEncryptKey" >
133133 <property name =" title" >
134- <string >Key used to encrypt saved password:</string >
134+ <string >" Encrypt Key" used to encrypt saved password:</string >
135135 </property >
136136 <layout class =" QGridLayout" name =" gridLayout_2" >
137137 <item row =" 0" column =" 0" >
145145 </item >
146146 <item >
147147 <widget class =" QLineEdit" name =" leEncryptKey" >
148+ <property name =" toolTip" >
149+ <string >Used to encrypt saved password. if it is empty, use a random " encrypt key" .</string >
150+ </property >
148151 <property name =" inputMask" >
149152 <string />
150153 </property >
151154 <property name =" echoMode" >
152155 <enum >QLineEdit::EchoMode::Password</enum >
153156 </property >
157+ <property name =" placeholderText" >
158+ <string >Used to encrypt saved password. if it is empty, use a random " encrypt key" .</string >
159+ </property >
154160 </widget >
155161 </item >
156162 <item >
206212 <item row =" 4" column =" 0" >
207213 <widget class =" QCheckBox" name =" cbEnableUserName" >
208214 <property name =" text" >
209- <string >Enable use the system user as the user</string >
215+ <string >Enable use the currnet system user as the default user in new settings </string >
210216 </property >
211217 </widget >
212218 </item >
You can’t perform that action at this time.
0 commit comments