forked from qt-creator/qt-creator
IOutputPane: Refactor zoom function into base class
Try to make zoom and font handling in the panes more similar and put common stuff into IOutputPane. Change-Id: I59c38c5eecbf67b7ca6c9d84a6f61b1292a787df Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
André Hartmann
parent
e127d599ac
commit
48073b2990
@@ -46,7 +46,6 @@ public:
|
||||
~MessageOutputWindow() override;
|
||||
|
||||
QWidget *outputWidget(QWidget *parent) override;
|
||||
QList<QWidget*> toolBarWidgets() const override;
|
||||
|
||||
QString displayName() const override;
|
||||
int priorityInStatusBar() const override;
|
||||
@@ -64,16 +63,8 @@ public:
|
||||
void goToPrev() override;
|
||||
bool canNavigate() const override;
|
||||
|
||||
void setFont(const QFont &font);
|
||||
void setWheelZoomEnabled(bool enabled);
|
||||
|
||||
private:
|
||||
void storeSettings() const;
|
||||
void loadSettings();
|
||||
|
||||
OutputWindow *m_widget;
|
||||
QToolButton *m_zoomInButton = nullptr;
|
||||
QToolButton *m_zoomOutButton = nullptr;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user