52 lines
773 B
C++
Executable File
52 lines
773 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* SideBarItem
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Norbert Thoden, SLSE, 2015-01-19
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
// Own
|
|
#include <Common/situation_map_logging.h>
|
|
#include "side_bar_export.h"
|
|
|
|
|
|
// Qt
|
|
#include <QStandardItemModel>
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
namespace SituationMap
|
|
{
|
|
|
|
|
|
class SIDEBAR_EXPORT SideBarItem : public QObject, public QStandardItem
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SideBarItem(const QString &text);
|
|
virtual ~SideBarItem();
|
|
|
|
virtual int type() const
|
|
{
|
|
return QStandardItem::UserType + 1;
|
|
}
|
|
|
|
void doEmitChanged();
|
|
|
|
signals:
|
|
bool changed(bool);
|
|
|
|
private:
|
|
LOGGER_T m_logger; ///< Interface of the Logging-Facility
|
|
|
|
};
|
|
|
|
|
|
} // namespace SituationMap
|
|
|