2 #include "ui_bottombar.h"
4 bottomBar::bottomBar(QWidget *parent) :
9 QRect screenGeometry = QApplication::desktop()->screenGeometry();
10 QGraphicsScene *main = new QGraphicsScene(0,0,screenGeometry.width(),15);
11 ui->graphicsView->setScene(main);
12 ui->graphicsView->setSceneRect(0,0,screenGeometry.width(),15);
13 ui->graphicsView->setTransformationAnchor(QGraphicsView::NoAnchor);
14 main->setBackgroundBrush(this->palette().window());
15 main->setSceneRect(0,0,screenGeometry.width(),15);
16 main->addRect(0,0,screenGeometry.width()/2,15,QPen(Qt::white),QBrush(Qt::white));
19 bottomBar::~bottomBar()
23 void bottomBar::on_addButton_clicked()
28 void bottomBar::changeEvent(QEvent *e)
30 QWidget::changeEvent(e);
32 case QEvent::LanguageChange:
33 ui->retranslateUi(this);