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
241469c7
Commit
241469c7
authored
Feb 07, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: fix bookmarks dialog
parent
fda57ab5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
modules/gui/qt4/dialogs/bookmarks.cpp
modules/gui/qt4/dialogs/bookmarks.cpp
+14
-15
No files found.
modules/gui/qt4/dialogs/bookmarks.cpp
View file @
241469c7
...
...
@@ -27,9 +27,10 @@
#include "dialogs/bookmarks.hpp"
#include "input_manager.hpp"
#include <Q
Grid
Layout>
#include <Q
HBox
Layout>
#include <QSpacerItem>
#include <QPushButton>
#include <QDialogButtonBox>
BookmarksDialog
::
BookmarksDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
{
...
...
@@ -38,19 +39,26 @@ BookmarksDialog::BookmarksDialog( intf_thread_t *_p_intf ):QVLCFrame( _p_intf )
setWindowTitle
(
qtr
(
"Edit Bookmarks"
)
);
setWindowRole
(
"vlc-bookmarks"
);
Q
GridLayout
*
layout
=
new
QGrid
Layout
(
this
);
Q
HBoxLayout
*
layout
=
new
QHBox
Layout
(
this
);
QDialogButtonBox
*
buttonsBox
=
new
QDialogButtonBox
(
Qt
::
Vertical
);
QPushButton
*
addButton
=
new
QPushButton
(
qtr
(
"Create"
)
);
addButton
->
setToolTip
(
qtr
(
"Create a new bookmark"
)
);
buttonsBox
->
addButton
(
addButton
,
QDialogButtonBox
::
ActionRole
);
QPushButton
*
delButton
=
new
QPushButton
(
qtr
(
"Delete"
)
);
delButton
->
setToolTip
(
qtr
(
"Delete the selected item"
)
);
buttonsBox
->
addButton
(
delButton
,
QDialogButtonBox
::
ActionRole
);
QPushButton
*
clearButton
=
new
QPushButton
(
qtr
(
"Clear"
)
);
clearButton
->
setToolTip
(
qtr
(
"Delete all the bookmarks"
)
);
buttonsBox
->
addButton
(
clearButton
,
QDialogButtonBox
::
ResetRole
);
#if 0
QPushButton *extractButton = new QPushButton( qtr( "Extract" ) );
extractButton->setToolTip( qtr() );
buttonsBox->addButton( extractButton, QDialogButtonBox::ActionRole );
#endif
QPushButton
*
closeButton
=
new
QPushButton
(
qtr
(
"&Close"
)
);
/* ?? Feels strange as Qt guidelines will put reject on top */
buttonsBox
->
addButton
(
new
QPushButton
(
qtr
(
"&Close"
)
),
QDialogButtonBox
::
RejectRole
);
bookmarksList
=
new
QTreeWidget
(
this
);
bookmarksList
->
setRootIsDecorated
(
false
);
...
...
@@ -67,17 +75,8 @@ BookmarksDialog::BookmarksDialog( intf_thread_t *_p_intf ):QVLCFrame( _p_intf )
headerLabels
<<
qtr
(
"Time"
);
bookmarksList
->
setHeaderLabels
(
headerLabels
);
layout
->
addWidget
(
addButton
,
0
,
0
);
layout
->
addWidget
(
delButton
,
1
,
0
);
layout
->
addWidget
(
clearButton
,
2
,
0
);
layout
->
addItem
(
new
QSpacerItem
(
20
,
20
,
QSizePolicy
::
Expanding
),
4
,
0
);
#if 0
layout->addWidget( extractButton, 5, 0 );
#endif
layout
->
addWidget
(
bookmarksList
,
0
,
1
,
6
,
2
);
layout
->
setColumnStretch
(
1
,
1
);
layout
->
addWidget
(
closeButton
,
7
,
2
);
layout
->
addWidget
(
buttonsBox
);
layout
->
addWidget
(
bookmarksList
);
CONNECT
(
THEMIM
->
getIM
(),
bookmarksChanged
(),
this
,
update
()
);
...
...
@@ -93,7 +92,7 @@ BookmarksDialog::BookmarksDialog( intf_thread_t *_p_intf ):QVLCFrame( _p_intf )
#if 0
BUTTONACT( extractButton, extract() );
#endif
BUTTONACT
(
closeButton
,
close
()
);
CONNECT
(
buttonsBox
,
rejected
(),
this
,
close
()
);
readSettings
(
"Bookmarks"
,
QSize
(
435
,
280
)
);
updateGeometry
();
...
...
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