[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2024-11-04 02:36:03 +00:00 committed by xiaoyifang
parent 4f19efcdb7
commit 1754ce2023
2 changed files with 8 additions and 7 deletions

View file

@ -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 );
}

View file

@ -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;
}