mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-22 12:56:11 +00:00
ab27e09b91
Sometimes it is not necessary to include the whole Cutter.h file Hence, it's been splitted so you can include only what you require E.g. #include "core/CutterCommon.h" to have access to the common types
27 lines
581 B
C++
27 lines
581 B
C++
#include "CutterTreeWidget.h"
|
|
#include "core/MainWindow.h"
|
|
|
|
CutterTreeWidget::CutterTreeWidget(QObject *parent) :
|
|
QObject(parent),
|
|
bar(nullptr)
|
|
{}
|
|
|
|
void CutterTreeWidget::addStatusBar(QVBoxLayout *pos)
|
|
{
|
|
if(!bar) {
|
|
bar = new QStatusBar;
|
|
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum);
|
|
bar->setSizePolicy(sizePolicy);
|
|
pos->addWidget(bar);
|
|
}
|
|
}
|
|
|
|
void CutterTreeWidget::showItemsNumber(int count)
|
|
{
|
|
if(bar){
|
|
bar->showMessage(tr("%1 Items").arg(count));
|
|
}
|
|
}
|
|
|
|
CutterTreeWidget::~CutterTreeWidget() {}
|