2121#include " text_browser_dialog.h"
2222
2323#include < Qt>
24+ #include < QtGlobal>
25+ #include < QAbstractButton>
2426#include < QApplication>
2527#include < QHBoxLayout>
2628#include < QIcon>
29+ #include < QPoint>
2730#include < QPushButton>
2831#include < QScrollBar>
2932#include < QScroller> // IWYU pragma: keep
33+ #include < QSizeF>
3034#include < QString>
3135#include < QTextBrowser>
36+ #include < QTextDocument>
37+ #include < QTextEdit>
3238#include < QToolTip>
3339#include < QVBoxLayout>
40+ #include < QWidget>
3441
3542#include " gui/widgets/text_browser.h"
3643#include " util/backports.h" // IWYU pragma: keep
@@ -47,7 +54,7 @@ TextBrowserDialog::TextBrowserDialog(QWidget* parent)
4754 setWindowModality (Qt::WindowModal);
4855 }
4956
50- QVBoxLayout * layout = new QVBoxLayout ();
57+ auto * layout = new QVBoxLayout ();
5158 setLayout (layout);
5259
5360 int left, top, right, bottom;
@@ -58,7 +65,7 @@ TextBrowserDialog::TextBrowserDialog(QWidget* parent)
5865 text_browser->setOpenExternalLinks (true );
5966 layout->addWidget (text_browser);
6067
61- QHBoxLayout * buttons_layout = new QHBoxLayout ();
68+ auto * buttons_layout = new QHBoxLayout ();
6269 buttons_layout->setContentsMargins (left, top, right, bottom);
6370
6471 QPushButton* back_button = new QPushButton (QIcon (QStringLiteral (" :/images/arrow-left.png" )), QApplication::translate (" QFileDialog" , " Back" ));
@@ -122,7 +129,7 @@ QSize TextBrowserDialog::sizeHint() const
122129 return size;
123130}
124131
125- void TextBrowserDialog::sourceChanged (const QUrl&)
132+ void TextBrowserDialog::sourceChanged (const QUrl& /* unused */ )
126133{
127134 ; // Nothing, to be overridden in subclasses
128135}
0 commit comments