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
bc7cceda
Commit
bc7cceda
authored
Oct 15, 2006
by
Tim Beaulen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KActiveLabel -> QLabel
svn path=/trunk/KDE/kdemultimedia/juk/; revision=595688
parent
d102816d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
nowplaying.cpp
nowplaying.cpp
+3
-1
nowplaying.h
nowplaying.h
+2
-4
No files found.
nowplaying.cpp
View file @
bc7cceda
...
...
@@ -237,6 +237,8 @@ TrackItem::TrackItem(NowPlaying *parent) :
m_label
=
new
LinkLabel
(
this
);
m_label
->
setTextInteractionFlags
(
Qt
::
LinksAccessibleByMouse
|
Qt
::
LinksAccessibleByKeyboard
);
#warning We should potentially check on URL underlining.
/* m_label->setLinkUnderline(false); */
...
...
@@ -244,7 +246,7 @@ TrackItem::TrackItem(NowPlaying *parent) :
layout
->
addWidget
(
m_label
);
layout
->
addStretch
();
connect
(
m_label
,
SIGNAL
(
urlClick
(
const
QString
&
)),
this
,
connect
(
m_label
,
SIGNAL
(
linkActivated
(
const
QString
&
)),
this
,
SLOT
(
slotOpenLink
(
const
QString
&
)));
}
...
...
nowplaying.h
View file @
bc7cceda
...
...
@@ -21,7 +21,6 @@
#include <q3hbox.h>
#include <QLabel>
#include <qpointer.h>
//Added by qt3to4:
#include <QMouseEvent>
#include <QDragEnterEvent>
#include <Q3ValueList>
...
...
@@ -117,11 +116,10 @@ private:
* A link label that doesn't automatically open Konqueror.
*/
#warning port KActiveLabel to QLabel and see where LinkLabel is used in Juk.
class
LinkLabel
:
public
KActiveLabel
class
LinkLabel
:
public
QLabel
{
public:
LinkLabel
(
QWidget
*
parent
)
:
KActive
Label
(
parent
)
{}
LinkLabel
(
QWidget
*
parent
)
:
Q
Label
(
parent
)
{}
virtual
void
openLink
(
const
QString
&
)
{}
};
...
...
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