forked from qt-creator/qt-creator
Re-use output window implementation for general messages.
Moving the implementation to core plugin.
This commit is contained in:
@@ -33,7 +33,8 @@
|
||||
#ifndef MESSAGEOUTPUTWINDOW_H
|
||||
#define MESSAGEOUTPUTWINDOW_H
|
||||
|
||||
#include <coreplugin/ioutputpane.h>
|
||||
#include "ioutputpane.h"
|
||||
#include "outputwindow.h"
|
||||
|
||||
#include <QtGui/QShowEvent>
|
||||
#include <QtGui/QResizeEvent>
|
||||
@@ -42,21 +43,6 @@
|
||||
namespace Core {
|
||||
namespace Internal {
|
||||
|
||||
class TextView : public QTextEdit
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TextView(QWidget *parent = 0) : QTextEdit(parent) {}
|
||||
|
||||
void showEvent(QShowEvent *);
|
||||
void scrollToBottom();
|
||||
bool isScrollbarAtBottom() const;
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent *e);
|
||||
};
|
||||
|
||||
class MessageOutputWindow : public Core::IOutputPane
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -85,7 +71,7 @@ public:
|
||||
bool canNavigate();
|
||||
|
||||
private:
|
||||
TextView *m_widget;
|
||||
OutputWindow *m_widget;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user