mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-12 19:40:28 +02:00
First Change Buttonsize
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user