mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
fix: remove for
loop with most one iteration (#804)
* fix: remove `for` loop with most one iteration * 🎨 apply clang-format changes * fix: remove `for` loop with most one iteration * fix: code smells * 🎨 apply clang-format changes --------- Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
This commit is contained in:
parent
85b2a98dec
commit
87e2091214
1753
src/ui/mainwindow.cc
1753
src/ui/mainwindow.cc
File diff suppressed because it is too large
Load diff
|
@ -255,6 +255,7 @@ private:
|
||||||
|
|
||||||
void changeWebEngineViewFont();
|
void changeWebEngineViewFont();
|
||||||
bool isWordPresentedInFavorites( QString const & word, unsigned groupId );
|
bool isWordPresentedInFavorites( QString const & word, unsigned groupId );
|
||||||
|
void errorMessageOnStatusBar( const QString & errStr );
|
||||||
private slots:
|
private slots:
|
||||||
|
|
||||||
void hotKeyActivated( int );
|
void hotKeyActivated( int );
|
||||||
|
@ -458,7 +459,7 @@ private slots:
|
||||||
void showFullTextSearchDialog();
|
void showFullTextSearchDialog();
|
||||||
void closeFullTextSearchDialog();
|
void closeFullTextSearchDialog();
|
||||||
|
|
||||||
void clipboardChange(QClipboard::Mode m);
|
void clipboardChange( QClipboard::Mode m );
|
||||||
|
|
||||||
void inspectElement( QWebEnginePage * );
|
void inspectElement( QWebEnginePage * );
|
||||||
|
|
||||||
|
@ -475,7 +476,7 @@ class ArticleSaveProgressDialog : public QProgressDialog
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit ArticleSaveProgressDialog( QWidget * parent = 0, Qt::WindowFlags f = Qt::Widget ):
|
explicit ArticleSaveProgressDialog( QWidget * parent = nullptr, Qt::WindowFlags f = Qt::Widget ):
|
||||||
QProgressDialog( parent, f )
|
QProgressDialog( parent, f )
|
||||||
{
|
{
|
||||||
setAutoReset( false );
|
setAutoReset( false );
|
||||||
|
|
Loading…
Reference in a new issue