Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
66803298
Commit
66803298
authored
Apr 21, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: ExtToolButton: set delay relatively to dblclick's
parent
ef77c313
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
modules/gui/qt4/util/customwidgets.cpp
modules/gui/qt4/util/customwidgets.cpp
+3
-1
modules/gui/qt4/util/customwidgets.hpp
modules/gui/qt4/util/customwidgets.hpp
+1
-1
No files found.
modules/gui/qt4/util/customwidgets.cpp
View file @
66803298
...
...
@@ -36,6 +36,7 @@
#include <QKeyEvent>
#include <QWheelEvent>
#include <QPixmap>
#include <QApplication>
#include <vlc_keys.h>
QFramelessButton
::
QFramelessButton
(
QWidget
*
parent
)
...
...
@@ -415,7 +416,8 @@ SpinningIcon::~SpinningIcon()
QToolButtonExt
::
QToolButtonExt
(
QWidget
*
parent
,
int
ms
)
:
longClick
(
false
)
{
setAutoRepeat
(
true
);
setAutoRepeatDelay
(
ms
);
/* default to twice the doubleclick delay */
setAutoRepeatDelay
(
(
ms
>
0
)
?
ms
:
2
*
QApplication
::
doubleClickInterval
()
);
setAutoRepeatInterval
(
100
);
connect
(
this
,
SIGNAL
(
released
()),
this
,
SLOT
(
releasedSlot
())
);
}
...
...
modules/gui/qt4/util/customwidgets.hpp
View file @
66803298
...
...
@@ -52,7 +52,7 @@ class QToolButtonExt : public QToolButton
{
Q_OBJECT
public:
QToolButtonExt
(
QWidget
*
parent
=
0
,
int
ms
=
100
0
);
QToolButtonExt
(
QWidget
*
parent
=
0
,
int
ms
=
0
);
private:
bool
longClick
;
private
slots
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment