mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
4f19efcdb7
commit
1754ce2023
|
@ -916,7 +916,7 @@ QString DictGroupsWidget::getCurrentGroupName() const
|
|||
|
||||
if ( current >= 0 ) {
|
||||
auto widget = dynamic_cast< DictGroupWidget & >( *widget( x ) );
|
||||
|
||||
|
||||
return widget.name();
|
||||
}
|
||||
|
||||
|
@ -974,8 +974,7 @@ void DictGroupsWidget::combineGroups( int source, int target )
|
|||
|
||||
connect( model, &DictListModel::contentChanged, this, &DictGroupsWidget::tabDataChanged );
|
||||
|
||||
const QString toolTipStr = tr( "Dictionaries: " )
|
||||
+ QString::number( model->getCurrentDictionaries().size() );
|
||||
const QString toolTipStr = tr( "Dictionaries: " ) + QString::number( model->getCurrentDictionaries().size() );
|
||||
setTabToolTip( target, toolTipStr );
|
||||
}
|
||||
|
||||
|
@ -1127,8 +1126,8 @@ void DictGroupsWidget::contextMenu( QPoint const & pos )
|
|||
|
||||
void DictGroupsWidget::tabDataChanged()
|
||||
{
|
||||
const QString toolTipStr = tr( "Dictionaries: " )
|
||||
+ QString::number( getCurrentModel()->getCurrentDictionaries().size() );
|
||||
const QString toolTipStr =
|
||||
tr( "Dictionaries: " ) + QString::number( getCurrentModel()->getCurrentDictionaries().size() );
|
||||
setTabToolTip( currentIndex(), toolTipStr );
|
||||
}
|
||||
|
||||
|
|
|
@ -136,11 +136,13 @@ public:
|
|||
return ui.dictionaries->selectionModel();
|
||||
}
|
||||
|
||||
QString name(){
|
||||
QString name()
|
||||
{
|
||||
return groupName;
|
||||
}
|
||||
|
||||
void setName( const QString & name ){
|
||||
void setName( const QString & name )
|
||||
{
|
||||
groupName = name;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue