[X2Go-Commits] [x2goclient] 01/02: Set toolTip with detailed information for session button.

git-admin at x2go.org git-admin at x2go.org
Thu Nov 4 20:02:25 CET 2021


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2goclient.

commit b7e538a5ab4d4fa2a8484f451491b0ca39c64432
Author: Oleksandr Shneyder <o.shneyder at phoca-gmbh.de>
Date:   Thu Nov 4 11:34:10 2021 -0600

    Set toolTip with detailed information for session button.
---
 debian/changelog      | 1 +
 src/sessionbutton.cpp | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 28035e3..5cd3422 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -27,6 +27,7 @@ x2goclient (4.1.2.3-0x2go1) UNRELEASED; urgency=medium
     - Implement different view modes for sessions explorer:
       Favorite sessions, running sessions, all sessions.
     - Improve view modes in broker mode.
+    - Set toolTip with detailed information for session button.
 
   [ Ryan Schmidt ]
   * New upstream version (4.1.2.3):
diff --git a/src/sessionbutton.cpp b/src/sessionbutton.cpp
index 1cacf1a..ce2a54c 100644
--- a/src/sessionbutton.cpp
+++ b/src/sessionbutton.cpp
@@ -58,7 +58,6 @@ SessionButton::SessionButton ( ONMainWindow* mw,QWidget *parent, QString id )
 
     setPalette(pal);
 
-
     updated=false;
     fav=false;
 
@@ -360,6 +359,7 @@ void SessionButton::redraw()
     updated=true;
     bool snd;
 
+    QStringList toolTip;
 
     X2goSettings *st;
 
@@ -380,6 +380,7 @@ void SessionButton::redraw()
         path=tails.join("/");
     }
 
+    toolTip<<path;
     QFontMetrics metr(sessName->font());
     nameofSession=name;
 
@@ -471,6 +472,7 @@ void SessionButton::redraw()
     published=st->setting()->value ( sid+"/published",
                                      false ).toBool();
 
+    toolTip<<uname+"@"+sv;
 
     cmdBox->clear();
     cmdBox->addItem ( "KDE" );
@@ -603,6 +605,7 @@ void SessionButton::redraw()
     cmdIcon->setPixmap ( cmdpix );
     cmd->setText ( command );
 
+    toolTip<<command;
 
     geomBox->clear();
     geomBox->addItem ( tr ( "fullscreen" ) );
@@ -699,6 +702,7 @@ void SessionButton::redraw()
     server->setMinimumSize ( server->sizeHint() );
     delete st;
     setFav(getFavFromConfig());
+    setToolTip(toolTip.join("\n"));
 }
 
 void SessionButton::mousePressEvent ( QMouseEvent * event )

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list