RedPanda-CPP/RedPandaIDE/iconsmanager.cpp

32 lines
770 B
C++
Raw Normal View History

#include "iconsmanager.h"
IconsManager* pIconsManager;
IconsManager::IconsManager(QObject *parent) : QObject(parent)
{
mSyntaxError = std::make_shared<QPixmap>(":/icons/images/editor/syntaxerror.png");
mSyntaxWarning = std::make_shared<QPixmap>(":/icons/images/editor/syntaxwarning.png");
mBreakpoint = std::make_shared<QPixmap>(":/icons/images/editor/breakpoint.png");
2021-07-26 00:22:08 +08:00
mActiveBreakpoint = std::make_shared<QPixmap>(":/icons/images/editor/currentline.png");
}
PIcon IconsManager::syntaxError() const
{
return mSyntaxError;
}
PIcon IconsManager::syntaxWarning() const
{
return mSyntaxWarning;
}
PIcon IconsManager::breakpoint() const
{
return mBreakpoint;
}
2021-07-26 00:22:08 +08:00
PIcon IconsManager::activeBreakpoint() const
{
2021-07-26 00:22:08 +08:00
return mActiveBreakpoint;
}