mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
Log viewer:
- Display correctly all log files. - Clean it when quitting the settings. - Clip text.
This commit is contained in:
parent
fd6fd27909
commit
75f2056442
2 changed files with 3 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ void Logger::init (const shared_ptr<linphone::Config> &config) {
|
|||
QString Logger::getLogText()const{
|
||||
QDir path = QString::fromStdString(linphone::Core::getLogCollectionPath());
|
||||
QString prefix = QString::fromStdString(linphone::Core::getLogCollectionPrefix());
|
||||
auto files = path.entryInfoList(QStringList(prefix+"*.log"), QDir::Files | QDir::NoSymLinks | QDir::Readable, QDir::Time);
|
||||
auto files = path.entryInfoList(QStringList(prefix+"*.log"), QDir::Files | QDir::NoSymLinks | QDir::Readable, QDir::Time | QDir::Reversed);
|
||||
QString result;
|
||||
for(auto fileInfo : files){
|
||||
QFile file(fileInfo.filePath());
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ ApplicationWindow {
|
|||
title: qsTr('settingsTitle')
|
||||
|
||||
onClosing: {
|
||||
logViewer.active = false
|
||||
SettingsModel.settingsWindowClosing()
|
||||
tabBar.setCurrentIndex(0)
|
||||
}
|
||||
|
|
@ -199,6 +200,7 @@ ApplicationWindow {
|
|||
Layout.topMargin: 20
|
||||
Layout.leftMargin: 10
|
||||
Layout.rightMargin: 10
|
||||
clip: true
|
||||
|
||||
delegate: Text {
|
||||
width: idContentListView.width
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue