forked from qt-creator/qt-creator
Removed static QIcon instances.
thus fixing the exit warning: "~QX11PixmapData(): QPixmap objects must be destroyed..." Acked-by: con
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QAbstractTableModel>
|
||||
#include <QtGui/QIcon>
|
||||
|
||||
namespace Debugger {
|
||||
class DebuggerManager;
|
||||
@@ -143,6 +144,10 @@ public:
|
||||
QList<BreakpointData *> takeEnabledBreakpoints(); // not owned
|
||||
QList<BreakpointData *> takeDisabledBreakpoints(); // not owned
|
||||
|
||||
QIcon breakpointIcon() const { return m_breakpointIcon; }
|
||||
QIcon disabledBreakpointIcon() const { return m_disabledBreakpointIcon; }
|
||||
QIcon pendingBreakPointIcon() const { return m_pendingBreakPointIcon; }
|
||||
|
||||
public slots:
|
||||
void setBreakpoint(const QString &fileName, int lineNumber);
|
||||
void toggleBreakpointEnabled(BreakpointData *data);
|
||||
@@ -168,6 +173,10 @@ private:
|
||||
void resetBreakpoints();
|
||||
void removeBreakpointHelper(int index);
|
||||
|
||||
const QIcon m_breakpointIcon;
|
||||
const QIcon m_disabledBreakpointIcon;
|
||||
const QIcon m_pendingBreakPointIcon;
|
||||
|
||||
DebuggerManager *m_manager; // not owned
|
||||
QList<BreakpointData *> m_bp;
|
||||
QList<BreakpointData *> m_inserted; // lately inserted breakpoints
|
||||
|
||||
Reference in New Issue
Block a user