diff options
author | Ken Moore <ken@ixsystems.com> | 2018-10-02 08:40:24 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2018-10-02 08:41:42 -0400 |
commit | 7b999cc96bcb8e77acbeac2673f3d670f79e18ed (patch) | |
tree | e744d3095cd515e5ac333bc5c6d910bbb8d41937 /src-qt5 | |
parent | Just a bunch of whitespace fixes (diff) | |
download | lumina-7b999cc96bcb8e77acbeac2673f3d670f79e18ed.tar.gz lumina-7b999cc96bcb8e77acbeac2673f3d670f79e18ed.tar.bz2 lumina-7b999cc96bcb8e77acbeac2673f3d670f79e18ed.zip |
Some minor cleanup. Nothing much changed
Diffstat (limited to 'src-qt5')
-rw-r--r-- | src-qt5/core/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp | 4 | ||||
-rw-r--r-- | src-qt5/core/lumina-desktop/panel-plugins/systemtray/TrayIcon.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp b/src-qt5/core/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp index b20eb64e..8f22c3a0 100644 --- a/src-qt5/core/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp +++ b/src-qt5/core/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp @@ -106,7 +106,7 @@ void TrayIcon::paintEvent(QPaintEvent *event){ //qDebug() << " - Pix size:" << pix.size().width() << pix.size().height(); //qDebug() << " - Geom:" << this->geometry().x() << this->geometry().y() << this->geometry().width() << this->geometry().height(); if(!pix.isNull()){ - if((this->size()*scalefactor) != pix.size()){ QTimer::singleShot(10, this, SLOT(updateIcon())); } + if((this->size()*scalefactor) != pix.size()){ QTimer::singleShot(10, this, SLOT(updateIcon())); return; } painter.drawPixmap(0,0,this->width(), this->height(), pix.scaled(this->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation) ); badpaints = 0; //good paint }else{ @@ -123,7 +123,7 @@ void TrayIcon::paintEvent(QPaintEvent *event){ } void TrayIcon::resizeEvent(QResizeEvent *event){ - //qDebug() << "Resize Event:" << event->size().width() << event->size().height(); + //qDebug() << "Resize Event:" << event->size().width() << event->size().height(); if(AID!=0){ LSession::handle()->XCB->ResizeWindow(AID, event->size()); QTimer::singleShot(500, this, SLOT(update()) ); //make sure to re-draw the window in a moment diff --git a/src-qt5/core/lumina-desktop/panel-plugins/systemtray/TrayIcon.h b/src-qt5/core/lumina-desktop/panel-plugins/systemtray/TrayIcon.h index feba153e..65687121 100644 --- a/src-qt5/core/lumina-desktop/panel-plugins/systemtray/TrayIcon.h +++ b/src-qt5/core/lumina-desktop/panel-plugins/systemtray/TrayIcon.h @@ -5,7 +5,7 @@ // See the LICENSE file for full details //=========================================== // Note: The basic idea behind this class that that it puts the app window -// in the same spot as the tray icon (to directly pass mouse events and such), +// in the same spot as the tray icon (to directly pass mouse events and such), // while keeping the tray icon visual in sync with the app window //=========================================== #ifndef _LUMINA_PANEL_PLUGIN_SYSTEM_TRAY_ICON_H |