workaround-for-qaction.diff 644 B

12345678910111213141516171819202122
  1. Index: smplayer-0.6.9_20100211/src/myaction.cpp
  2. ===================================================================
  3. --- smplayer-0.6.9_20100211.orig/src/myaction.cpp
  4. +++ smplayer-0.6.9_20100211/src/myaction.cpp
  5. @@ -72,14 +72,14 @@ void MyAction::change(const QIcon & icon
  6. }
  7. void MyAction::change(const QString & text ) {
  8. - setText( text );
  9. + setText( text.trimmed() );
  10. QString accel_text = shortcut().toString();
  11. QString s = text;
  12. s.replace("&","");
  13. if (!accel_text.isEmpty()) {
  14. - setToolTip( s + " ("+ accel_text +")");
  15. + setToolTip( s.trimmed() + " ("+ tr(accel_text.toAscii().constData()) +")");
  16. setIconText( s );
  17. }