mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 06:55:59 +03:00
Merge commit 'refs/merge-requests/7' of git://gitorious.org/owncloud/mirall into merge-requests/7
This commit is contained in:
commit
90c4e422d8
2 changed files with 14 additions and 0 deletions
|
@ -156,6 +156,13 @@ LogBrowser::LogBrowser(QWidget *parent) :
|
||||||
|
|
||||||
mainLayout->addWidget( btnbox );
|
mainLayout->addWidget( btnbox );
|
||||||
|
|
||||||
|
// clear button
|
||||||
|
_clearBtn = new QPushButton;
|
||||||
|
_clearBtn->setText( tr("Clear") );
|
||||||
|
_clearBtn->setToolTip( tr("Clear the log display.") );
|
||||||
|
btnbox->addButton(_clearBtn, QDialogButtonBox::ActionRole);
|
||||||
|
connect( _clearBtn, SIGNAL(clicked()), this, SLOT(slotClearLog()));
|
||||||
|
|
||||||
// save Button
|
// save Button
|
||||||
_saveBtn = new QPushButton;
|
_saveBtn = new QPushButton;
|
||||||
_saveBtn->setText( tr("S&ave") );
|
_saveBtn->setText( tr("S&ave") );
|
||||||
|
@ -261,4 +268,9 @@ void LogBrowser::slotSave()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LogBrowser::slotClearLog()
|
||||||
|
{
|
||||||
|
_logWidget->clear();
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
|
@ -93,11 +93,13 @@ protected slots:
|
||||||
void slotFind();
|
void slotFind();
|
||||||
void search( const QString& );
|
void search( const QString& );
|
||||||
void slotSave();
|
void slotSave();
|
||||||
|
void slotClearLog();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
LogWidget *_logWidget;
|
LogWidget *_logWidget;
|
||||||
QLineEdit *_findTermEdit;
|
QLineEdit *_findTermEdit;
|
||||||
QPushButton *_saveBtn;
|
QPushButton *_saveBtn;
|
||||||
|
QPushButton *_clearBtn;
|
||||||
QLabel *_statusLabel;
|
QLabel *_statusLabel;
|
||||||
|
|
||||||
QFile _logFile;
|
QFile _logFile;
|
||||||
|
|
Loading…
Reference in a new issue