diff options
author | Arno <arno@disconnect.de> | 2020-07-19 12:21:38 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2020-07-19 12:21:38 +0200 |
commit | f2c94a38a333884a7f5d49a4b11273a5682af4e4 (patch) | |
tree | 929e5f803b43b1f2d1ec74b3b2d4c01db5284340 | |
parent | ff672bb48ecd0f0aa6884628a0ceeac5b50a75a8 (diff) | |
download | SheMov-f2c94a38a333884a7f5d49a4b11273a5682af4e4.tar.gz SheMov-f2c94a38a333884a7f5d49a4b11273a5682af4e4.tar.bz2 SheMov-f2c94a38a333884a7f5d49a4b11273a5682af4e4.zip |
Use QTransform instead of QMatrix
The compiler told me that the interface is deprecated.
-rw-r--r-- | fswidget.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fswidget.cpp b/fswidget.cpp index 10cea04..5bb4142 100644 --- a/fswidget.cpp +++ b/fswidget.cpp @@ -64,11 +64,11 @@ void FSWidget::setupWidget(){ QToolBar *toolbar = new QToolBar; QPixmap buttplug(":/butt_plug_light.png"); - QMatrix rotatematrix; - rotatematrix.rotate(90); - QIcon buttplugRight(buttplug.transformed(rotatematrix)); - rotatematrix.rotate(-180); - QIcon buttplugLeft(buttplug.transformed(rotatematrix)); + QTransform transform; + transform.rotate(90); + QIcon buttplugRight(buttplug.transformed(transform)); + transform.rotate(-180); + QIcon buttplugLeft(buttplug.transformed(transform)); QAction *backA = new QAction(buttplugLeft, tr("Prev. dir"), this); connect(backA, &QAction::triggered, [=] { advanceDir(-1); }); toolbar->addAction(backA); |