mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
Need two clang-format off markers to not trigger clazy-connect-not-normalized
This commit is contained in:
parent
b558f7f762
commit
751a7074d1
2 changed files with 7 additions and 1 deletions
|
@ -1103,7 +1103,10 @@ static bool shouldDoPartialUpdateCallback(const QVariant &vPayload)
|
|||
static void partialUpdateCallback(const QImage &image, const QVariant &vPayload)
|
||||
{
|
||||
auto payload = vPayload.value<RenderImagePayload *>();
|
||||
// clang-format off
|
||||
// Otherwise the Okular::PixmapRequest* gets turned into Okular::PixmapRequest * that is not normalized and is slightly slower
|
||||
QMetaObject::invokeMethod(payload->generator, "signalPartialPixmapRequest", Qt::QueuedConnection, Q_ARG(Okular::PixmapRequest*, payload->request), Q_ARG(QImage, image));
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
#ifdef HAVE_POPPLER_0_63
|
||||
|
|
|
@ -747,7 +747,10 @@ void Shell::connectPart( QObject* part )
|
|||
connect( part, SIGNAL(enableCloseAction(bool)), this, SLOT(setCloseEnabled(bool))); // clazy:exclude=old-style-connect
|
||||
connect( part, SIGNAL(mimeTypeChanged(QMimeType)), this, SLOT(setTabIcon(QMimeType))); // clazy:exclude=old-style-connect
|
||||
connect( part, SIGNAL(urlsDropped(QList<QUrl>)), this, SLOT(handleDroppedUrls(QList<QUrl>)) ); // clazy:exclude=old-style-connect
|
||||
connect( part, SIGNAL(fitWindowToPage(QSize,QSize)), this, SLOT(slotFitWindowToPage(QSize,QSize)) ); // clazy:exclude=old-style-connect
|
||||
// clang-format off
|
||||
// Otherwise the QSize,QSize gets turned into QSize, QSize that is not normalized signals and is slightly slower
|
||||
connect(part, SIGNAL(fitWindowToPage(QSize,QSize)), this, SLOT(slotFitWindowToPage(QSize,QSize))); // clazy:exclude=old-style-connect
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
void Shell::print()
|
||||
|
|
Loading…
Reference in a new issue