From 5b2bc8282e422ba9d5942984c3d0fc96f7558a31 Mon Sep 17 00:00:00 2001 From: mhogomchungu Date: Wed, 9 Nov 2022 21:27:56 +0300 Subject: [PATCH] code improvement --- src/qcheckgmail.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/qcheckgmail.cpp b/src/qcheckgmail.cpp index 4b78299..ed15a0d 100644 --- a/src/qcheckgmail.cpp +++ b/src/qcheckgmail.cpp @@ -127,7 +127,7 @@ void qCheckGMail::showToolTip( const QString& iconName, { if( subTitle.size() > 0 ){ - QString m ; + QString m = "" ; auto iter = subTitle.begin() ; @@ -148,12 +148,14 @@ void qCheckGMail::showToolTip( const QString& iconName, if( e.success ){ - m += "\n" + e.txt + "" ; + m += "
" + e.txt + "" ; }else{ - m += "\n" + e.txt ; + m += "
" + e.txt ; } } + m += "
" ; + m_statusicon.setToolTip( iconName,title,m ) ; } }