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