reading new sqlite log files from disk and display in settings dialog
for convert actions
This commit is contained in:
@@ -3428,9 +3428,21 @@ p, li { white-space: pre-wrap; }
|
||||
</item>
|
||||
<item row="3" column="0" colspan="2">
|
||||
<widget class="QTreeWidget" name="treeWidget_logFiles">
|
||||
<property name="alternatingRowColors">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="indentation">
|
||||
<number>5</number>
|
||||
</property>
|
||||
<property name="rootIsDecorated">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="allColumnsShowFocus">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Log Files</string>
|
||||
<string>Log File</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
|
||||
@@ -405,6 +405,21 @@ void settingsDialogImpl::exec() {
|
||||
spinBox_logStoreDuration->setValue(myConfig->readConfigInt("LogStoreDuration"));
|
||||
comboBox_logInterval->setCurrentIndex(myConfig->readConfigInt("LogInterval"));
|
||||
|
||||
QDir logFileDir;
|
||||
logFileDir.setPath(QString::fromUtf8(myConfig->readConfigString("LogDir").c_str()));
|
||||
QStringList filters;
|
||||
filters << "*.db";
|
||||
QStringList dbFilesList = logFileDir.entryList(filters, QDir::Files, QDir::Time);
|
||||
|
||||
QStringListIterator logFileIt(dbFilesList);
|
||||
while (logFileIt.hasNext()) {
|
||||
|
||||
QTreeWidgetItem *item = new QTreeWidgetItem;
|
||||
item->setText(0, logFileIt.next());
|
||||
treeWidget_logFiles->addTopLevelItem(item);
|
||||
}
|
||||
|
||||
|
||||
bool tmpHasIpv6 = socket_has_ipv6();
|
||||
bool tmpHasSctp = socket_has_sctp();
|
||||
checkBox_useIpv6->setEnabled(tmpHasIpv6);
|
||||
|
||||
Reference in New Issue
Block a user