Martchus
b2780568b4
It is a common error that dirs can not be removed because they still contain ignored items. Usually I want to get rid of them nevertheless. This change allows to remove all non-empty Syncthing can not remove via the tray.
41 lines
698 B
C++
41 lines
698 B
C++
#ifndef TEXTVIEWDIALOG_H
|
|
#define TEXTVIEWDIALOG_H
|
|
|
|
#include "../global.h"
|
|
|
|
#include <QWidget>
|
|
|
|
QT_FORWARD_DECLARE_CLASS(QTextBrowser)
|
|
|
|
namespace Data {
|
|
struct SyncthingDir;
|
|
}
|
|
|
|
namespace QtGui {
|
|
|
|
class SYNCTHINGWIDGETS_EXPORT TextViewDialog : public QWidget {
|
|
Q_OBJECT
|
|
public:
|
|
TextViewDialog(const QString &title = QString(), QWidget *parent = nullptr);
|
|
|
|
QTextBrowser *browser();
|
|
static TextViewDialog *forDirectoryErrors(const Data::SyncthingDir &dir);
|
|
|
|
signals:
|
|
void reload();
|
|
|
|
protected:
|
|
void keyPressEvent(QKeyEvent *event);
|
|
|
|
private:
|
|
QTextBrowser *m_browser;
|
|
};
|
|
|
|
inline QTextBrowser *TextViewDialog::browser()
|
|
{
|
|
return m_browser;
|
|
}
|
|
}
|
|
|
|
#endif // TEXTVIEWDIALOG_H
|