First Change Buttonsize

This commit is contained in:
AshBastian
2020-01-29 13:35:54 +01:00
parent c8812a8c00
commit a9435e6d56
2 changed files with 8 additions and 1 deletions

View File

@@ -7,6 +7,8 @@
#include <QCloseEvent>
#include <QDebug>
#include <string>
#include <QScreen>
#include <QGuiApplication>
// IntelliPhotoGui constructor
IntelliPhotoGui::IntelliPhotoGui(){
@@ -689,6 +691,11 @@ void IntelliPhotoGui::createGui(){
paintingArea = new PaintingArea(1280, 720);
paintingArea->guiReference = this;
QScreen *screen = QGuiApplication::primaryScreen();
QRect screenGeometry = screen->geometry();
Buttonsize.setWidth(screenGeometry.width()/10);
Buttonsize.setHeight(screenGeometry.height()/10);
preview = QPixmap(":/Icons/Buttons/icons/circle-tool.svg");
CircleButton = new QPushButton();
CircleButton->setFixedSize(Buttonsize);

View File

@@ -124,7 +124,7 @@ PaintingArea* paintingArea;
QPixmap preview;
//size of all buttons
const QSize Buttonsize = QSize(35,35);
QSize Buttonsize;
//buttons used for gui
QPushButton* CircleButton;