Skip to content

Commit

Permalink
added image tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
kapitainsky committed Mar 10, 2020
1 parent e7bd07d commit fb06081
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
Binary file added src/images/tooltips/icononly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/tooltips/textandicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/tooltips/textonly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/preferences_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ PreferencesDialog::PreferencesDialog(QWidget *parent) : QDialog(parent) {
}
#endif

// images as tooltips - one picture tells more...
ui.cb_textandicon->setToolTip( tr("<img src=':remotes/images/tooltips/textandicon.png'>") );
ui.cb_icononly->setToolTip( tr("<img src=':remotes/images/tooltips/icononly.png'>") );
ui.cb_textonly->setToolTip( tr("<img src=':remotes/images/tooltips/textonly.png'>") );

// lock vertical resizing
resize(0, 0);
adjustSize();
Expand Down
5 changes: 5 additions & 0 deletions src/resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@

<file>images/program_icons/rclone-browser512.png</file>


<file>images/tooltips/textandicon.png</file>
<file>images/tooltips/icononly.png</file>
<file>images/tooltips/textonly.png</file>

<file>images/amazon_cloud_drive.png</file>
<file>images/b2.png</file>
<file>images/crypt.png</file>
Expand Down

0 comments on commit fb06081

Please sign in to comment.