[prev in list] [next in list] [prev in thread] [next in thread]
List: kwin
Subject: Re: Review Request 127191: KCompletionBox should *not* be a tooltip
From: Thomas_Lübking <thomas.luebking () gmail ! com>
Date: 2016-03-07 11:41:55
Message-ID: 20160307114155.6298.22303 () mimi ! kde ! org
[Download RAW message or body]
--===============6874150829293987698==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
> On Feb. 26, 2016, 2:14 p.m., Thomas Lübking wrote:
> > src/kcompletionbox.cpp, line 66
> > <https://git.reviewboard.kde.org/r/127191/diff/1/?file=445519#file445519line66>
> >
> > q->setAttribute(Qt::WA_X11NetWmWindowTypeCombo); // broken??
>
> Marco Martin wrote:
> ok, i'm blind :p
>
> Martin Gräßlin wrote:
> cd src/qt5/qtbase/src/plugins/platforms/xcb
> git grep X11NetWmWindowTypeCombo
>
> -> no result
>
> I doubt this still works...
>
> Marco Martin wrote:
> yep, indeed i get type normal now, getting back on the first approach
QComboBox still sets the attribute but it's in a "Q_DEAD_CODE_FROM_QT4_X11" preproc \
branch. Qt5 is a piece of broken shit - seriously!
QComboBox would then fall to ::setWindowFlags(Qt::Popup) but actually that's not \
worth it at all. The target is QML + Phones, the rest of Qt is apparently now \
unmaintained junk.
- Thomas
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127191/#review92809
-----------------------------------------------------------
On March 7, 2016, 11:35 a.m., Marco Martin wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127191/
> -----------------------------------------------------------
>
> (Updated March 7, 2016, 11:35 a.m.)
>
>
> Review request for KDE Frameworks and kwin.
>
>
> Repository: kcompletion
>
>
> Description
> -------
>
> KCompletionbox it's actually more of a combobox popup than a tooltip.
> this sets it the proper type (unfortunately with an hack due the type not being \
> available to Qt::WindowFlags)
> without this, the new morphingpopups KWin effect will animate completion boxes \
> (such as in file open dialog, kate, dolphin adress bar etc)
>
> Diffs
> -----
>
> src/kcompletionbox.cpp 99afc8e
>
> Diff: https://git.reviewboard.kde.org/r/127191/diff/
>
>
> Testing
> -------
>
> Same behavior, due to the Window and bypasswindowmanager that are those two that \
> made the desired behavior when tooltip was picked
>
> Thanks,
>
> Marco Martin
>
>
--===============6874150829293987698==
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 8bit
<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 \
solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;"> \
<tr> <td>
This is an automatically generated e-mail. To reply, visit:
<a href="https://git.reviewboard.kde.org/r/127191/">https://git.reviewboard.kde.org/r/127191/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <p style="margin-top: 0;">On February 26th, 2016, 2:14 p.m. UTC, <b>Thomas \
Lübking</b> wrote:</p> <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;">
<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; \
border-collapse: collapse; margin: 2px padding: 2px;"> <thead>
<tr>
<th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; \
font-size: 9pt; padding: 4px 8px; text-align: left;"> <a \
href="https://git.reviewboard.kde.org/r/127191/diff/1/?file=445519#file445519line66" \
style="color: black; font-weight: bold; text-decoration: \
underline;">src/kcompletionbox.cpp</a> <span style="font-weight: normal;">
(Diff revision 1)
</span>
</th>
</tr>
</thead>
<tbody>
<tr>
<th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2"></font></th> <td bgcolor="#c5ffc4" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td> <th \
bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid \
#C0C0C0;" align="right"><font size="2">66</font></th> <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span \
class="n">q</span><span class="o">-></span><span \
class="n">setWindowFlags</span><span class="p">(</span><span class="n">Qt</span><span \
class="o">::</span><span class="n">Window</span> <span class="o">|</span> <span \
class="n">Qt</span><span class="o">::</span><span \
class="n">X11BypassWindowManagerHint</span><span class="p">);</span> <span \
class="c1">// calls setVisible, so must be done after \
initializations</span></pre></td> </tr>
</tbody>
</table>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">q->setAttribute(Qt::WA_X11NetWmWindowTypeCombo); // broken??</p></pre> \
</blockquote>
<p>On February 26th, 2016, 2:18 p.m. UTC, <b>Marco Martin</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;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">ok, \
i'm blind :p</p></pre> </blockquote>
<p>On March 7th, 2016, 11:23 a.m. UTC, <b>Martin Gräßlin</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;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">cd \
src/qt5/qtbase/src/plugins/platforms/xcb git grep X11NetWmWindowTypeCombo</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">-> no result</p> <p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">I \
doubt this still works...</p></pre> </blockquote>
<p>On March 7th, 2016, 11:31 a.m. UTC, <b>Marco Martin</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;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">yep, \
indeed i get type normal now, getting back on the first approach</p></pre> \
</blockquote>
</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; \
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">QComboBox still sets the attribute but it's in a "Q_DEAD_CODE_FROM_QT4_X11" \
preproc branch. Qt5 is a piece of broken shit - seriously!</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">QComboBox would then fall to \
::setWindowFlags(Qt::Popup) but actually that's not worth it at all. The target is \
QML + Phones, the rest of Qt is apparently now unmaintained junk.</p></pre> <br />
<p>- Thomas</p>
<br />
<p>On March 7th, 2016, 11:35 a.m. UTC, Marco Martin wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: \
1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;"> <tr>
<td>
<div>Review request for KDE Frameworks and kwin.</div>
<div>By Marco Martin.</div>
<p style="color: grey;"><i>Updated March 7, 2016, 11:35 a.m.</i></p>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
kcompletion
</div>
<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;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">KCompletionbox it's actually more of a combobox popup \
than a tooltip. this sets it the proper type (unfortunately with an hack due the type \
not being available to Qt::WindowFlags)</p> <p style="padding: 0;text-rendering: \
inherit;margin: 0;line-height: inherit;white-space: inherit;">without this, the new \
morphingpopups KWin effect will animate completion boxes (such as in file open \
dialog, kate, dolphin adress bar etc)</p></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;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Same behavior, due to the Window and \
bypasswindowmanager that are those two that made the desired behavior when tooltip \
was picked</p></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/kcompletionbox.cpp <span style="color: grey">(99afc8e)</span></li>
</ul>
<p><a href="https://git.reviewboard.kde.org/r/127191/diff/" style="margin-left: \
3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>
--===============6874150829293987698==--
[Attachment #3 (text/plain)]
_______________________________________________
kwin mailing list
kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic