mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-15 21:00:37 +02:00
First Change Buttonsize
This commit is contained in:
@@ -7,6 +7,8 @@
|
|||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <QScreen>
|
||||||
|
#include <QGuiApplication>
|
||||||
|
|
||||||
// IntelliPhotoGui constructor
|
// IntelliPhotoGui constructor
|
||||||
IntelliPhotoGui::IntelliPhotoGui(){
|
IntelliPhotoGui::IntelliPhotoGui(){
|
||||||
@@ -689,6 +691,11 @@ void IntelliPhotoGui::createGui(){
|
|||||||
paintingArea = new PaintingArea(1280, 720);
|
paintingArea = new PaintingArea(1280, 720);
|
||||||
paintingArea->guiReference = this;
|
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");
|
preview = QPixmap(":/Icons/Buttons/icons/circle-tool.svg");
|
||||||
CircleButton = new QPushButton();
|
CircleButton = new QPushButton();
|
||||||
CircleButton->setFixedSize(Buttonsize);
|
CircleButton->setFixedSize(Buttonsize);
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ PaintingArea* paintingArea;
|
|||||||
QPixmap preview;
|
QPixmap preview;
|
||||||
|
|
||||||
//size of all buttons
|
//size of all buttons
|
||||||
const QSize Buttonsize = QSize(35,35);
|
QSize Buttonsize;
|
||||||
|
|
||||||
//buttons used for gui
|
//buttons used for gui
|
||||||
QPushButton* CircleButton;
|
QPushButton* CircleButton;
|
||||||
|
|||||||
Reference in New Issue
Block a user