Fix compile warning in qsearchfield_mac.mm

This commit is contained in:
Jonas Kvinge 2020-07-17 16:35:57 +02:00
parent d27a571882
commit 7afde0e93f
1 changed files with 4 additions and 2 deletions

View File

@ -159,7 +159,7 @@ QSearchField::QSearchField(QWidget *parent) : QWidget(parent) {
NSSearchField *search = [[QocoaSearchField alloc] init];
QSearchFieldDelegate *delegate = [[QSearchFieldDelegate alloc] init];
pimpl = delegate->pimpl = new QSearchFieldPrivate(this, search);
[search setDelegate:delegate];
[search setDelegate:(id<NSSearchFieldDelegate>)delegate];
setupLayout(search, this);
setFixedHeight(24);
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
@ -167,7 +167,9 @@ QSearchField::QSearchField(QWidget *parent) : QWidget(parent) {
[pool drain];
}
void QSearchField::setIconSize(const int iconsize) {}
void QSearchField::setIconSize(const int iconsize) {
Q_UNUSED(iconsize);
}
void QSearchField::setText(const QString &text) {
Q_ASSERT(pimpl);