mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
Adjust back/forward buttons icon for right-to-left window layout
This commit is contained in:
parent
d22c08d8cd
commit
b6a5beb2c2
|
@ -805,6 +805,13 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
|
||||||
ui.centralWidget->grabGesture( Gestures::GDPinchGestureType );
|
ui.centralWidget->grabGesture( Gestures::GDPinchGestureType );
|
||||||
ui.centralWidget->grabGesture( Gestures::GDSwipeGestureType );
|
ui.centralWidget->grabGesture( Gestures::GDSwipeGestureType );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if( layoutDirection() == Qt::RightToLeft )
|
||||||
|
{
|
||||||
|
// Adjust button icons for Right-To-Left layout
|
||||||
|
navBack->setIcon( QIcon( ":/icons/next.png" ) );
|
||||||
|
navForward->setIcon( QIcon( ":/icons/previous.png" ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::ctrlTabPressed()
|
void MainWindow::ctrlTabPressed()
|
||||||
|
|
|
@ -57,6 +57,13 @@ ScanPopup::ScanPopup( QWidget * parent,
|
||||||
{
|
{
|
||||||
ui.setupUi( this );
|
ui.setupUi( this );
|
||||||
|
|
||||||
|
if( layoutDirection() == Qt::RightToLeft )
|
||||||
|
{
|
||||||
|
// Adjust button icons for Right-To-Left layout
|
||||||
|
ui.goBackButton->setIcon( QIcon( ":/icons/next.png" ) );
|
||||||
|
ui.goForwardButton->setIcon( QIcon( ":/icons/previous.png" ) );
|
||||||
|
}
|
||||||
|
|
||||||
mainStatusBar = new MainStatusBar( this );
|
mainStatusBar = new MainStatusBar( this );
|
||||||
|
|
||||||
ui.queryError->hide();
|
ui.queryError->hide();
|
||||||
|
|
Loading…
Reference in a new issue