forked from i94matjo/qtcreator-minimap-plugin
-
Notifications
You must be signed in to change notification settings - Fork 4
/
optionspage.h
34 lines (25 loc) · 838 Bytes
/
optionspage.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include <texteditor/displaysettings.h>
#include <texteditor/texteditoroptionspage.h>
#include <QCheckBox>
#include <QPointer>
#include <QSpinBox>
namespace Minimap::Internal {
class OptionsPage final : public TextEditor::TextEditorOptionsPage {
public:
OptionsPage(QObject *parent, bool isTextWrappingEnabled) noexcept;
~OptionsPage() noexcept override = default;
QWidget *widget() override;
void apply() override;
void finish() override;
private:
void displaySettingsChanged(
const TextEditor::DisplaySettings &settings) noexcept;
QPointer<QWidget> m_widget = nullptr;
QCheckBox *m_enabled = nullptr;
QSpinBox *m_width = nullptr;
QSpinBox *m_lineCountThresHold = nullptr;
QSpinBox *m_alpha = nullptr;
bool m_textWrapping;
};
} // namespace Minimap::Internal