Implemented hand dragging cursor
This commit is contained in:
1
main.cpp
1
main.cpp
@@ -1,7 +1,6 @@
|
|||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
#include "stripwidget.h"
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
@@ -94,9 +94,11 @@ void StripWidget::setOwner(const QString &owner)
|
|||||||
void StripWidget::beginDrag()
|
void StripWidget::beginDrag()
|
||||||
{
|
{
|
||||||
setGraphicsEffect(new QGraphicsOpacityEffect);
|
setGraphicsEffect(new QGraphicsOpacityEffect);
|
||||||
|
m_ui->title->setCursor(Qt::ClosedHandCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StripWidget::endDrag()
|
void StripWidget::endDrag()
|
||||||
{
|
{
|
||||||
setGraphicsEffect(nullptr);
|
setGraphicsEffect(nullptr);
|
||||||
|
m_ui->title->setCursor(Qt::OpenHandCursor);
|
||||||
}
|
}
|
||||||
|
@@ -29,6 +29,9 @@
|
|||||||
<pointsize>13</pointsize>
|
<pointsize>13</pointsize>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="cursor">
|
||||||
|
<cursorShape>OpenHandCursor</cursorShape>
|
||||||
|
</property>
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::Panel</enum>
|
<enum>QFrame::Panel</enum>
|
||||||
</property>
|
</property>
|
||||||
|
Reference in New Issue
Block a user