[prev in list] [next in list] [prev in thread] [next in thread]
List: amarok-devel
Subject: Re: Review Request: Show hidden dock widgets when activated by a
From: Thomas_Lübking <thomas.luebking () web ! de>
Date: 2010-10-29 14:46:08
Message-ID: 20101029144608.29633.3157 () vidsolbach ! de
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
> On 2010-10-09 16:56:38, Thomas Lübking wrote:
> > Yes it does ;-)
> >
> > (be aware that i wrote that "just down" - the vars/classnames might slightly \
> > differ and there're likely typos =)
> > MainWindow::setDockAsCurrentTabWidget( char docktype )
> > {
> > QDockWidget *dock(0);
> > switch (docktype)
> > {
> > case 'p': dock = playlistDock; break;
> > case 'c': dock = contextDock; break;
> > case 'm': dock = mediaSourcesDock; break;
> > default: return; // invalid request
> > }
> > if ( !tabifiedDockWidgets(dock).isEmpty() ) // is actually tabbed
> > tabifyDockWidget( docks.at(docks.count()-1), dock ); // tabify moves second on \
> > top of first, either 0 or c-1 should do... }
>
> Thomas Lübking wrote:
> d'oooh - oc. it must be sth. like
>
> QList<QDockWidget*> docks = tabifiedDockWidgets(dock);
> if (!docks.isEmpty())
> ...
>
> (ie. forgot to define docks ;-)
>
> Daniel Faust wrote:
> Ok, now I got it.
> But it still doesn't solve the problem properly. The second dock is not only moved \
> above the fist one but also to the right of it. So if I try to give the most left \
> dock the focus it gets moved to the right of the reference dock. (very irritating)
> Mark Kretschmann wrote:
> Any progress with this one?
>
> Thomas Lübking wrote:
> I should rather not group mails by week ;-)
>
> Daniel is right and unfortunately there's no clean way to prevent this (you'd have \
> to store and restore the tab order, but therefore you'd need to identify the tabbar \
> as well as the position of the demanded dock)
> Since the QDockAreaLayout is (unfortunately.) private there's really no clean \
> solution for this :-(
> Daniel Faust wrote:
> So the question is whether to merge the patch as it is, or not.
> It isn't very clean, but I would merge it anyway because it is a very small and \
> well-defined piece of code and it improves the usability.
> Daniel Faust wrote:
> So does somebody want to make a decision?
Just in doubt:
I don't feel (and just am not) in position to decide whether this is an "ok" \
solution. I can only say: "afaics there's no cleaner one"
- Thomas
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100030/#review81
-----------------------------------------------------------
On 2010-10-08 12:51:02, Daniel Faust wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/100030/
> -----------------------------------------------------------
>
> (Updated 2010-10-08 12:51:02)
>
>
> Review request for Amarok.
>
>
> Summary
> -------
>
> Since I have tabbed my Navigation and Context views I have to manually select the \
> tabs every time I open a bookmark. In my opinion this should be done automatically.
> Unfortunately I couldn't come up with a very clean solution. But please have a look \
> at the code yourself and share your opinion.
>
> Diffs
> -----
>
> src/MainWindow.h b86470e
> src/MainWindow.cpp 54c6751
> src/amarokurls/ContextUrlRunner.cpp 7416fbc
> src/amarokurls/NavigationUrlRunner.cpp 6bb6c0b
> src/playlist/PlaylistViewUrlRunner.cpp 749233e
>
> Diff: http://git.reviewboard.kde.org/r/100030/diff
>
>
> Testing
> -------
>
> I'm running amarok with this patch for many weeks now without any problems.
>
>
> Thanks,
>
> Daniel
>
>
[Attachment #5 (text/html)]
<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 \
solid;"> <tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://git.reviewboard.kde.org/r/100030/">http://git.reviewboard.kde.org/r/100030/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <p style="margin-top: 0;">On October 9th, 2010, 4:56 p.m., <b>Thomas \
Lübking</b> wrote:</p> <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;"> <pre style="white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">Yes it does ;-)
(be aware that i wrote that "just down" - the vars/classnames might \
slightly differ and there're likely typos =)
MainWindow::setDockAsCurrentTabWidget( char docktype )
{
QDockWidget *dock(0);
switch (docktype)
{
case 'p': dock = playlistDock; break;
case 'c': dock = contextDock; break;
case 'm': dock = mediaSourcesDock; break;
default: return; // invalid request
}
if ( !tabifiedDockWidgets(dock).isEmpty() ) // is actually tabbed
tabifyDockWidget( docks.at(docks.count()-1), dock ); // tabify moves second on \
top of first, either 0 or c-1 should do... } </pre>
</blockquote>
<p>On October 9th, 2010, 5:01 p.m., <b>Thomas Lübking</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">d'oooh - oc. it must \
be sth. like
QList<QDockWidget*> docks = tabifiedDockWidgets(dock);
if (!docks.isEmpty())
...
(ie. forgot to define docks ;-)</pre>
</blockquote>
<p>On October 9th, 2010, 10:30 p.m., <b>Daniel Faust</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Ok, now I got it. But it \
still doesn't solve the problem properly. The second dock is not only moved above \
the fist one but also to the right of it. So if I try to give the most left dock the \
focus it gets moved to the right of the reference dock. (very irritating)</pre> \
</blockquote>
<p>On October 16th, 2010, 10:11 a.m., <b>Mark Kretschmann</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Any progress with this \
one?</pre> </blockquote>
<p>On October 16th, 2010, 1:03 p.m., <b>Thomas Lübking</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I should rather not \
group mails by week ;-)
Daniel is right and unfortunately there's no clean way to prevent this (you'd \
have to store and restore the tab order, but therefore you'd need to identify the \
tabbar as well as the position of the demanded dock)
Since the QDockAreaLayout is (unfortunately.) private there's really no clean \
solution for this :-(</pre> </blockquote>
<p>On October 18th, 2010, 8:43 a.m., <b>Daniel Faust</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">So the question is \
whether to merge the patch as it is, or not. It isn't very clean, but I would \
merge it anyway because it is a very small and well-defined piece of code and it \
improves the usability.</pre> </blockquote>
<p>On October 29th, 2010, 10:11 a.m., <b>Daniel Faust</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">So does somebody want to \
make a decision?</pre> </blockquote>
</blockquote>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Just in doubt: I \
don't feel (and just am not) in position to decide whether this is an \
"ok" solution. I can only say: "afaics there's no cleaner \
one"</pre> <br />
<p>- Thomas</p>
<br />
<p>On October 8th, 2010, 12:51 p.m., Daniel Faust wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://git.reviewboard.kde.orgrb/images/review_request_box_top_bg.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;"> <tr>
<td>
<div>Review request for Amarok.</div>
<div>By Daniel Faust.</div>
<p style="color: grey;"><i>Updated 2010-10-08 12:51:02</i></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">Since I have tabbed my Navigation and Context views I have to manually \
select the tabs every time I open a bookmark. In my opinion this should be done \
automatically. Unfortunately I couldn't come up with a very clean solution. But \
please have a look at the code yourself and share your opinion.</pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">I'm running amarok with this patch for many weeks now without any \
problems.</pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>src/MainWindow.h <span style="color: grey">(b86470e)</span></li>
<li>src/MainWindow.cpp <span style="color: grey">(54c6751)</span></li>
<li>src/amarokurls/ContextUrlRunner.cpp <span style="color: \
grey">(7416fbc)</span></li>
<li>src/amarokurls/NavigationUrlRunner.cpp <span style="color: \
grey">(6bb6c0b)</span></li>
<li>src/playlist/PlaylistViewUrlRunner.cpp <span style="color: \
grey">(749233e)</span></li>
</ul>
<p><a href="http://git.reviewboard.kde.org/r/100030/diff/" style="margin-left: \
3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>
_______________________________________________
Amarok-devel mailing list
Amarok-devel@kde.org
https://mail.kde.org/mailman/listinfo/amarok-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic