summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-10-13 02:47:40 +0300
committerFat-Zer <fatzer2@gmail.com>2025-10-23 22:15:07 +0000
commit1ef239328633e480a794a863b16f4f9cbbce5fea (patch)
treee7211fc0216963ff7753f9303bc4ea65dad00060
parent85723c5c06d16e73260761cacfb3a696bb0578b8 (diff)
downloadtdebase-1ef239328633e480a794a863b16f4f9cbbce5fea.tar.gz
tdebase-1ef239328633e480a794a863b16f4f9cbbce5fea.zip
kicker: minor fixup of spacing in a file
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
-rw-r--r--kicker/applets/systemtray/systemtrayapplet.cpp110
1 files changed, 55 insertions, 55 deletions
diff --git a/kicker/applets/systemtray/systemtrayapplet.cpp b/kicker/applets/systemtray/systemtrayapplet.cpp
index 175e037e5..3ca721792 100644
--- a/kicker/applets/systemtray/systemtrayapplet.cpp
+++ b/kicker/applets/systemtray/systemtrayapplet.cpp
@@ -487,21 +487,21 @@ void SystemTrayApplet::orientationChange( Orientation /*orientation*/ )
}
void SystemTrayApplet::iconSizeChanged() {
- loadSettings();
- updateVisibleWins();
- layoutTray();
-
- TrayEmbedList::iterator emb = m_shownWins.begin();
- while (emb != m_shownWins.end()) {
- (*emb)->setFixedSize(m_iconSize, m_iconSize);
- ++emb;
- }
-
- emb = m_hiddenWins.begin();
- while (emb != m_hiddenWins.end()) {
- (*emb)->setFixedSize(m_iconSize, m_iconSize);
- ++emb;
- }
+ loadSettings();
+ updateVisibleWins();
+ layoutTray();
+
+ TrayEmbedList::iterator emb = m_shownWins.begin();
+ while (emb != m_shownWins.end()) {
+ (*emb)->setFixedSize(m_iconSize, m_iconSize);
+ ++emb;
+ }
+
+ emb = m_hiddenWins.begin();
+ while (emb != m_hiddenWins.end()) {
+ (*emb)->setFixedSize(m_iconSize, m_iconSize);
+ ++emb;
+ }
}
void SystemTrayApplet::loadSettings()
@@ -514,7 +514,7 @@ void SystemTrayApplet::loadSettings()
conf->reparseConfiguration();
conf->setGroup("General");
- if (conf->readBoolEntry("ShowPanelFrame", false) || m_showFrame) // Does ShowPanelFrame even exist?
+ if (conf->readBoolEntry("ShowPanelFrame", false) || m_showFrame) // Does ShowPanelFrame even exist?
{
setFrameStyle(Panel | Sunken);
}
@@ -1190,43 +1190,43 @@ void TrayEmbed::setBackground()
void TrayEmbed::ensureBackgroundSet()
{
- XWindowAttributes winprops;
- XGetWindowAttributes(x11Display(), embeddedWinId(), &winprops);
- if (winprops.depth == 32) {
- // This is a nasty little hack to make sure that tray icons / applications which do not match our QXEmbed native depth are still displayed properly,
- // i.e without irritating white/grey borders where the tray icon's transparency is supposed to be...
- // Essentially it converts a 24 bit Xlib Pixmap to a 32 bit Xlib Pixmap
-
- TQPixmap bg(width(), height());
-
- // Get the RGB background image
- bg.fill(parentWidget(), pos());
- TQImage bgImage = bg.convertToImage();
-
- // Create the ARGB pixmap
- Pixmap argbpixmap = XCreatePixmap(x11Display(), embeddedWinId(), width(), height(), 32);
- GC gc;
- gc = XCreateGC(x11Display(), embeddedWinId(), 0, 0);
- int w = bgImage.width();
- int h = bgImage.height();
- for (int y = 0; y < h; ++y) {
- TQRgb *ls = (TQRgb *)bgImage.scanLine( y );
- for (int x = 0; x < w; ++x) {
- TQRgb l = ls[x];
- int r = int( tqRed( l ) );
- int g = int( tqGreen( l ) );
- int b = int( tqBlue( l ) );
- int a = int( tqAlpha( l ) );
- XSetForeground(x11Display(), gc, (a << 24) | (r << 16) | (g << 8) | b );
- XDrawPoint(x11Display(), argbpixmap, gc, x, y);
- }
- }
- XFlush(x11Display());
- XSetWindowBackgroundPixmap(x11Display(), embeddedWinId(), argbpixmap);
- XFreePixmap(x11Display(), argbpixmap);
- XFreeGC(x11Display(), gc);
-
- // Repaint
- XClearArea(x11Display(), embeddedWinId(), 0, 0, 0, 0, True);
- }
+ XWindowAttributes winprops;
+ XGetWindowAttributes(x11Display(), embeddedWinId(), &winprops);
+ if (winprops.depth == 32) {
+ // This is a nasty little hack to make sure that tray icons / applications which do not match our QXEmbed native depth are still displayed properly,
+ // i.e without irritating white/grey borders where the tray icon's transparency is supposed to be...
+ // Essentially it converts a 24 bit Xlib Pixmap to a 32 bit Xlib Pixmap
+
+ TQPixmap bg(width(), height());
+
+ // Get the RGB background image
+ bg.fill(parentWidget(), pos());
+ TQImage bgImage = bg.convertToImage();
+
+ // Create the ARGB pixmap
+ Pixmap argbpixmap = XCreatePixmap(x11Display(), embeddedWinId(), width(), height(), 32);
+ GC gc;
+ gc = XCreateGC(x11Display(), embeddedWinId(), 0, 0);
+ int w = bgImage.width();
+ int h = bgImage.height();
+ for (int y = 0; y < h; ++y) {
+ TQRgb *ls = (TQRgb *)bgImage.scanLine( y );
+ for (int x = 0; x < w; ++x) {
+ TQRgb l = ls[x];
+ int r = int( tqRed( l ) );
+ int g = int( tqGreen( l ) );
+ int b = int( tqBlue( l ) );
+ int a = int( tqAlpha( l ) );
+ XSetForeground(x11Display(), gc, (a << 24) | (r << 16) | (g << 8) | b );
+ XDrawPoint(x11Display(), argbpixmap, gc, x, y);
+ }
+ }
+ XFlush(x11Display());
+ XSetWindowBackgroundPixmap(x11Display(), embeddedWinId(), argbpixmap);
+ XFreePixmap(x11Display(), argbpixmap);
+ XFreeGC(x11Display(), gc);
+
+ // Repaint
+ XClearArea(x11Display(), embeddedWinId(), 0, 0, 0, 0, True);
+ }
}