Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
Added tooltips on the main button.
Browse files Browse the repository at this point in the history
  • Loading branch information
Flone-dnb committed Nov 1, 2019
1 parent 0dd2b57 commit 361e0c4
Show file tree
Hide file tree
Showing 2 changed files with 173 additions and 3 deletions.
3 changes: 1 addition & 2 deletions TODO.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
- Add tooltips to all buttons.
- Speed up the process of adding the tracks. Add only paths and when play() called create FMOD object.
- Speed up the process of adding the tracks. Add only paths and when play() called create FMOD object.
- When adding music, we need to add it in the same order in which it was in the folder.
- Change random to random_device?
- There is a rare bug that causes a crash right after you open one track:
Expand Down
173 changes: 172 additions & 1 deletion src/View/MainWindow/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,24 @@ color: white;</string>
</color>
</brush>
</colorrole>
<colorrole role="ToolTipBase">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>7</red>
<green>7</green>
<blue>7</blue>
</color>
</brush>
</colorrole>
<colorrole role="ToolTipText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</brush>
</colorrole>
<colorrole role="PlaceholderText">
<brush brushstyle="NoBrush">
<color alpha="128">
Expand Down Expand Up @@ -187,6 +205,24 @@ color: white;</string>
</color>
</brush>
</colorrole>
<colorrole role="ToolTipBase">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>7</red>
<green>7</green>
<blue>7</blue>
</color>
</brush>
</colorrole>
<colorrole role="ToolTipText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</brush>
</colorrole>
<colorrole role="PlaceholderText">
<brush brushstyle="NoBrush">
<color alpha="128">
Expand Down Expand Up @@ -252,6 +288,24 @@ color: white;</string>
</color>
</brush>
</colorrole>
<colorrole role="ToolTipBase">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>7</red>
<green>7</green>
<blue>7</blue>
</color>
</brush>
</colorrole>
<colorrole role="ToolTipText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</brush>
</colorrole>
<colorrole role="PlaceholderText">
<brush brushstyle="NoBrush">
<color alpha="128">
Expand All @@ -264,6 +318,22 @@ color: white;</string>
</disabled>
</palette>
</property>
<property name="toolTip">
<string>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;font color=black&gt;
Previous Track
&lt;/font&gt;

&lt;/body&gt;
&lt;/html&gt;</string>
</property>
<property name="whatsThis">
<string/>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
Expand Down Expand Up @@ -490,6 +560,19 @@ QPushButton:pressed
</disabled>
</palette>
</property>
<property name="toolTip">
<string>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;font color=black&gt;
Stop
&lt;/font&gt;

&lt;/body&gt;
&lt;/html&gt;</string>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
Expand Down Expand Up @@ -724,6 +807,19 @@ QPushButton:pressed
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="toolTip">
<string>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;font color=black&gt;
Play
&lt;/font&gt;

&lt;/body&gt;
&lt;/html&gt;</string>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
Expand Down Expand Up @@ -959,6 +1055,19 @@ QPushButton:pressed
</disabled>
</palette>
</property>
<property name="toolTip">
<string>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;font color=black&gt;
Pause
&lt;/font&gt;

&lt;/body&gt;
&lt;/html&gt;</string>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
Expand Down Expand Up @@ -1185,6 +1294,19 @@ QPushButton:pressed
</disabled>
</palette>
</property>
<property name="toolTip">
<string>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;font color=black&gt;
Next Track
&lt;/font&gt;

&lt;/body&gt;
&lt;/html&gt;</string>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
Expand Down Expand Up @@ -1296,6 +1418,19 @@ QSlider::sub-page:disabled
<property name="enabled">
<bool>true</bool>
</property>
<property name="toolTip">
<string>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;font color=black&gt;
Repeat Track
&lt;/font&gt;

&lt;/body&gt;
&lt;/html&gt;</string>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
Expand Down Expand Up @@ -1331,6 +1466,19 @@ QPushButton:checked
</item>
<item>
<widget class="QPushButton" name="pushButton_Random">
<property name="toolTip">
<string>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;font color=black&gt;
Random Track
&lt;/font&gt;

&lt;/body&gt;
&lt;/html&gt;</string>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
Expand Down Expand Up @@ -1366,6 +1514,19 @@ QPushButton:checked
</item>
<item>
<widget class="QPushButton" name="pushButton_fx">
<property name="toolTip">
<string>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;font color=black&gt;
Sound Effects
&lt;/font&gt;

&lt;/body&gt;
&lt;/html&gt;</string>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
Expand Down Expand Up @@ -1394,7 +1555,17 @@ QPushButton:pressed
<item>
<widget class="QPushButton" name="pushButton_clearPlaylist">
<property name="toolTip">
<string/>
<string>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;font color=black&gt;
Clear Playlist
&lt;/font&gt;

&lt;/body&gt;
&lt;/html&gt;</string>
</property>
<property name="toolTipDuration">
<number>-1</number>
Expand Down

0 comments on commit 361e0c4

Please sign in to comment.