--===============2707004137563745536== Content-Type: multipart/alternative; boundary=000e0cd5918683c63e04addb2ad2 --000e0cd5918683c63e04addb2ad2 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I submitted my patch here ( https://bugs.kde.org/show_bug.cgi?id=3D235545 = ). Let me know If it requires more changes or not. -Jignesh On Mon, Sep 26, 2011 at 3:32 PM, Aaron J. Seigo wrote: > On Sunday, September 25, 2011 18:39:10 jignesh kakadiya wrote: > > http://paste.kde.org/126985/ here is the Ksnapshottimer.cpp > > please post patches, not full copies of the source files, so that we can > see > the changes. `git diff` makes this easy. > > some comments: > > * please keep indentation and whitespace identical in the file to other > uses. > e.g. it should be "if (" not "if(" and the opening curly brace on line 84 > looks like it is misalinged > > * an implementation of enterEvent would probably have been enough; > mouseMoveEvent is only really better if one assumes that after moving the > lable, it might still be under the mouse ... but in that case moving it > back > will have the same problem. enterEvent allows you to avoid the check for > "is > in the mouse inside the widget" and so keeps the code simpler > > * you don't need two booleans for "onLeftCorner" and "onRightCorner". jus= t > one > is enough. even then, a simple check for "if (x() =3D=3D screenGeom.left(= ))" > would > probably be enough to know if it is in the left corner. > > * the move call to (0, 0) on line 85 will break for screens whose geometr= y > does not start at (0, 0). it should instead be move(screenGeom.topLeft())= . > same for the move call on line 78 which uses 0 for the y coordinate. > > > > /home/jiggy/kde/src/ksnapshot/snapshottimer.cpp:76:49: error: invalid > use > > > of incomplete type =E2=80=98struct QDesktopWidget=E2=80=99 > > the file is missing: #include > > -- > Aaron J. Seigo > humru othro a kohnu se > GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43 > > KDE core developer sponsored by Qt Development Frameworks > > _______________________________________________ > Plasma-devel mailing list > Plasma-devel@kde.org > https://mail.kde.org/mailman/listinfo/plasma-devel > > --000e0cd5918683c63e04addb2ad2 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I submitted my patch here ( https://bugs.kde.org/show_bug.cgi?id=3D235545=A0=A0 ). Let m= e know If it requires more changes or not.

-Jignesh

On Mon, Sep 26, 2011 at 3:32 PM, Aaron J. Seigo <aseigo@kde.org> wrote:
On Sunday, September 25, 2011 18:39:10 jignesh kakadiya w= rote:
> http://past= e.kde.org/126985/ here is the Ksnapshottimer.cpp

please post patches, not full copies of the source files, so that we = can see
the changes. `git diff` makes this easy.

some comments:

* please keep indentation and whitespace identical in the file to other use= s.
e.g. it should be "if (" not "if(" and the opening curl= y brace on line 84
looks like it is misalinged

* an implementation of enterEvent would probably have been enough;
mouseMoveEvent is only really better if one assumes that after moving the lable, it might still be under the mouse ... but in that case moving it bac= k
will have the same problem. enterEvent allows you to avoid the check for &q= uot;is
in the mouse inside the widget" and so keeps the code simpler

* you don't need two booleans for "onLeftCorner" and "on= RightCorner". just one
is enough. even then, a simple check for "if (x() =3D=3D screenGeom.le= ft())" would
probably be enough to know if it is in the left corner.

* the move call to (0, 0) on line 85 will break for screens whose geometry<= br> does not start at (0, 0). it should instead be move(screenGeom.topLeft()).<= br> same for the move call on line 78 which uses 0 for the y coordinate.

> > /home/jiggy/kde/src/ksnapshot/snapshottimer.cpp:76:49: error: inv= alid use
> > of incomplete type =E2=80=98struct QDesktopWidget=E2=80=99<= br>
the file is missing: #include <QDesktopWidget>

--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA =A0EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


--000e0cd5918683c63e04addb2ad2-- --===============2707004137563745536== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============2707004137563745536==--