Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
juk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
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
David Planella
juk
Commits
35b50f4a
Commit
35b50f4a
authored
Feb 16, 2007
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Q3 support --
svn path=/trunk/KDE/kdemultimedia/juk/; revision=634156
parent
02e02c5a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
24 deletions
+24
-24
filerenamer.cpp
filerenamer.cpp
+6
-6
filerenamer.h
filerenamer.h
+2
-2
statuslabel.cpp
statuslabel.cpp
+3
-3
statuslabel.h
statuslabel.h
+3
-3
systemtray.cpp
systemtray.cpp
+8
-8
systemtray.h
systemtray.h
+2
-2
No files found.
filerenamer.cpp
View file @
35b50f4a
...
...
@@ -36,8 +36,8 @@
#include <kvbox.h>
#include <QFile>
#include <
q3
hbox.h>
#include <
q3
vbox.h>
#include <
k
hbox.h>
#include <
k
vbox.h>
#include <q3scrollview.h>
#include <QObject>
#include <QTimer>
...
...
@@ -358,7 +358,7 @@ int FileRenamerWidget::addRowCategory(TagType category)
row
.
position
=
m_rows
.
count
();
int
id
=
row
.
position
;
Q3HBox
*
frame
=
new
Q3
HBox
(
m_mainFrame
);
KHBox
*
frame
=
new
K
HBox
(
m_mainFrame
);
QPalette
palette
;
palette
.
setColor
(
frame
->
backgroundRole
(),
frame
->
palette
().
color
(
backgroundRole
()).
dark
(
110
));
frame
->
setPalette
(
palette
);
...
...
@@ -370,7 +370,7 @@ int FileRenamerWidget::addRowCategory(TagType category)
m_mainFrame
->
setStretchFactor
(
frame
,
1
);
Q3VBox
*
buttons
=
new
Q3
VBox
(
frame
);
KVBox
*
buttons
=
new
K
VBox
(
frame
);
buttons
->
setFrameStyle
(
Q3Frame
::
Plain
|
Q3Frame
::
Box
);
buttons
->
setLineWidth
(
1
);
...
...
@@ -392,7 +392,7 @@ int FileRenamerWidget::addRowCategory(TagType category)
frame
->
setStretchFactor
(
label
,
1
);
label
->
setAlignment
(
Qt
::
AlignCenter
);
Q3VBox
*
options
=
new
Q3
VBox
(
frame
);
KVBox
*
options
=
new
K
VBox
(
frame
);
row
.
enableButton
=
new
KPushButton
(
i18n
(
"Remove"
),
options
);
toggleMapper
->
connect
(
row
.
enableButton
,
SIGNAL
(
clicked
()),
SLOT
(
map
()));
toggleMapper
->
setMapping
(
row
.
enableButton
,
id
);
...
...
@@ -533,7 +533,7 @@ void FileRenamerWidget::createTagRows()
connect
(
upMapper
,
SIGNAL
(
mapped
(
int
)),
SLOT
(
moveItemUp
(
int
)));
connect
(
downMapper
,
SIGNAL
(
mapped
(
int
)),
SLOT
(
moveItemDown
(
int
)));
m_mainFrame
=
new
Q3
VBox
(
m_mainView
->
viewport
());
m_mainFrame
=
new
K
VBox
(
m_mainView
->
viewport
());
m_mainFrame
->
setMargin
(
10
);
m_mainFrame
->
setSpacing
(
5
);
...
...
filerenamer.h
View file @
35b50f4a
...
...
@@ -33,7 +33,7 @@ class QCheckBox;
class
QLayout
;
class
QLayoutItem
;
class
QPushButton
;
class
Q3
VBox
;
class
K
VBox
;
class
PlaylistItem
;
class
QSignalMapper
;
...
...
@@ -452,7 +452,7 @@ private slots:
private:
/// This is the frame that holds all of the category widgets and checkboxes.
Q3
VBox
*
m_mainFrame
;
K
VBox
*
m_mainFrame
;
/**
* This is the meat of the widget, it holds the rows for the user configuration. It is
...
...
statuslabel.cpp
View file @
35b50f4a
...
...
@@ -40,8 +40,8 @@ using namespace ActionCollection;
// public methods
////////////////////////////////////////////////////////////////////////////////
StatusLabel
::
StatusLabel
(
PlaylistInterface
*
playlist
,
QWidget
*
parent
,
const
char
*
name
)
:
Q3HBox
(
parent
,
name
),
StatusLabel
::
StatusLabel
(
PlaylistInterface
*
playlist
,
QWidget
*
parent
)
:
KHBox
(
parent
),
PlaylistObserver
(
playlist
),
m_showTimeRemaining
(
false
)
{
...
...
@@ -82,7 +82,7 @@ StatusLabel::StatusLabel(PlaylistInterface *playlist, QWidget *parent, const cha
setItemTotalTime
(
0
);
setItemCurrentTime
(
0
);
Q3HBox
*
jumpBox
=
new
Q3
HBox
(
this
);
KHBox
*
jumpBox
=
new
K
HBox
(
this
);
jumpBox
->
setFrameStyle
(
Box
|
Sunken
);
jumpBox
->
setSizePolicy
(
QSizePolicy
::
Maximum
,
QSizePolicy
::
Minimum
);
...
...
statuslabel.h
View file @
35b50f4a
...
...
@@ -18,7 +18,7 @@
#include "playlistinterface.h"
#include <
q3
hbox.h>
#include <
k
hbox.h>
//Added by qt3to4:
#include <QLabel>
#include <QEvent>
...
...
@@ -28,12 +28,12 @@ class KSqueezedTextLabel;
class
FileHandle
;
class
StatusLabel
:
public
Q3
HBox
,
public
PlaylistObserver
class
StatusLabel
:
public
K
HBox
,
public
PlaylistObserver
{
Q_OBJECT
public:
StatusLabel
(
PlaylistInterface
*
playlist
,
QWidget
*
parent
=
0
,
const
char
*
name
=
0
);
StatusLabel
(
PlaylistInterface
*
playlist
,
QWidget
*
parent
=
0
);
virtual
~
StatusLabel
();
virtual
void
updateCurrent
();
...
...
systemtray.cpp
View file @
35b50f4a
...
...
@@ -26,7 +26,7 @@
#include <kactionmenu.h>
#include <ktoggleaction.h>
#include <
q3
vbox.h>
#include <
k
vbox.h>
#include <QTimer>
#include <QColor>
#include <QPushButton>
...
...
@@ -320,9 +320,9 @@ void SystemTray::slotMouseInPopup()
// private methods
////////////////////////////////////////////////////////////////////////////////
Q3
VBox
*
SystemTray
::
createPopupLayout
(
QWidget
*
parent
,
const
FileHandle
&
file
)
K
VBox
*
SystemTray
::
createPopupLayout
(
QWidget
*
parent
,
const
FileHandle
&
file
)
{
Q3
VBox
*
infoBox
=
0
;
K
VBox
*
infoBox
=
0
;
if
(
buttonsToLeft
())
{
...
...
@@ -331,7 +331,7 @@ Q3VBox *SystemTray::createPopupLayout(QWidget *parent, const FileHandle &file)
createButtonBox
(
parent
);
addSeparatorLine
(
parent
);
infoBox
=
new
Q3
VBox
(
parent
);
infoBox
=
new
K
VBox
(
parent
);
// Another line, and the cover, if there's a cover, and if
// it's selected to be shown
...
...
@@ -350,7 +350,7 @@ Q3VBox *SystemTray::createPopupLayout(QWidget *parent, const FileHandle &file)
addSeparatorLine
(
parent
);
}
infoBox
=
new
Q3
VBox
(
parent
);
infoBox
=
new
K
VBox
(
parent
);
addSeparatorLine
(
parent
);
createButtonBox
(
parent
);
...
...
@@ -387,10 +387,10 @@ void SystemTray::createPopup()
connect
(
m_popup
,
SIGNAL
(
destroyed
()),
SLOT
(
slotPopupDestroyed
()));
connect
(
m_popup
,
SIGNAL
(
timeExpired
()),
SLOT
(
slotFadeOut
()));
Q3HBox
*
box
=
new
Q3HBox
(
m_popup
,
"popupMainLayout"
);
KHBox
*
box
=
new
KHBox
(
m_popup
);
box
->
setSpacing
(
15
);
// Add space between text and buttons
Q3
VBox
*
infoBox
=
createPopupLayout
(
box
,
playingFile
);
K
VBox
*
infoBox
=
createPopupLayout
(
box
,
playingFile
);
for
(
int
i
=
0
;
i
<
m_labels
.
capacity
();
++
i
)
{
m_labels
[
i
]
=
new
QLabel
/*FlickerFreeLabel*/
(
" "
,
infoBox
);
...
...
@@ -467,7 +467,7 @@ QPixmap SystemTray::createPixmap(const QString &pixName)
void
SystemTray
::
createButtonBox
(
QWidget
*
parent
)
{
Q3VBox
*
buttonBox
=
new
Q3
VBox
(
parent
);
KVBox
*
buttonBox
=
new
K
VBox
(
parent
);
buttonBox
->
setSpacing
(
3
);
...
...
systemtray.h
View file @
35b50f4a
...
...
@@ -32,7 +32,7 @@
class
FlickerFreeLabel
;
class
QTimer
;
class
Q3
VBox
;
class
K
VBox
;
class
FileHandle
;
/**
...
...
@@ -98,7 +98,7 @@ private:
// Creates the widget layout for the popup, returning the QVBox that
// holds the text labels. Uses buttonsToLeft() to figure out which
// order to create them in. @p file is used to grab the cover.
Q3
VBox
*
createPopupLayout
(
QWidget
*
parent
,
const
FileHandle
&
file
);
K
VBox
*
createPopupLayout
(
QWidget
*
parent
,
const
FileHandle
&
file
);
void
addSeparatorLine
(
QWidget
*
parent
);
void
addCoverButton
(
QWidget
*
parent
,
const
QPixmap
&
cover
);
...
...
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