Commit 9ddc0fab authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: small fixes on the toolbar custom dialog

(cherry picked from commit 31c91f64)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a8c51668
......@@ -108,12 +108,12 @@ typedef enum buttonType_e
static const char* const nameL[BUTTON_MAX] = { N_("Play"), N_("Stop"), N_("Open"),
N_("Previous/Backward"), N_("Next/Forward"), N_("Slower"), N_("Faster"), N_("Fullscreen"),
N_("Previous / Backward"), N_("Next / Forward"), N_("Slower"), N_("Faster"), N_("Fullscreen"),
N_("De-Fullscreen"), N_("Extended panel"), N_("Playlist"), N_("Snapshot"),
N_("Record"), N_("A->B Loop"), N_("Frame By Frame"), N_("Trickplay Reverse"),
N_("Step backward" ), N_("Step forward"), N_("Quit"), N_("Random"),
N_("Loop/Repeat mode"), N_("Information"), N_("Previous"), N_("Next"),
N_("Open subtitles file"), N_("Fullscreen controller width toggle")
N_("Loop / Repeat"), N_("Information"), N_("Previous"), N_("Next"),
N_("Open subtitles"), N_("Dock fullscreen controller")
};
static const char* const tooltipL[BUTTON_MAX] = { I_PLAY_TOOLTIP,
N_("Stop playback"), N_("Open a medium"),
......@@ -137,7 +137,7 @@ static const QString iconL[BUTTON_MAX] ={ ":/toolbar/play_b", ":/toolbar/stop_b"
":/toolbar/frame", ":/toolbar/reverse", ":/toolbar/skip_back",
":/toolbar/skip_fw", ":/toolbar/clear", ":/buttons/playlist/shuffle_on",
":/buttons/playlist/repeat_all", ":/menu/info",
":/toolbar/previous_b", ":/toolbar/next_b", "", ":/toolbar/space"
":/toolbar/previous_b", ":/toolbar/next_b", ":/toolbar/eject", ":/toolbar/space"
};
enum
......
......@@ -286,7 +286,11 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
/* Normal options */
setViewMode( QListView::IconMode );
setSpacing( 20 );
setSpacing( 8 );
setGridSize( QSize(90, 50) );
setWrapping( true );
setWordWrap( true );
setTextElideMode( Qt::ElideNone );
setDragEnabled( true );
/* All the buttons do not need a special rendering */
......@@ -294,7 +298,8 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
{
QListWidgetItem *widgetItem = new QListWidgetItem( this );
widgetItem->setText( qtr( nameL[i] ) );
widgetItem->setIcon( QIcon( iconL[i] ) );
QPixmap pix( iconL[i] );
widgetItem->setIcon( pix.scaled( 16, 16, Qt::KeepAspectRatio, Qt::SmoothTransformation ) );
widgetItem->setData( Qt::UserRole, QVariant( i ) );
addItem( widgetItem );
}
......@@ -434,6 +439,7 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
layout->setForwardButton( next );
layout->setRoundButton( play );
}
widgetItem->setText( qtr("Playback Buttons") );
break;
default:
msg_Warn( p_intf, "This should not happen %i", i );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment