Commit bfef3786 authored by Laurent Montel's avatar Laurent Montel 😁

Astyle kdelibs

parent 809eb695
......@@ -19,24 +19,20 @@ public:
c4_ReadOnlyViewer(c4_Sequence &seq_): _base(&seq_) {}
virtual ~c4_ReadOnlyViewer() {}
c4_View GetTemplate() Q_DECL_OVERRIDE
{
c4_View GetTemplate() Q_DECL_OVERRIDE {
return _base.Clone();
}
int GetSize() Q_DECL_OVERRIDE
{
int GetSize() Q_DECL_OVERRIDE {
return _base.GetSize();
}
int Lookup(c4_Cursor key_, int &count_) Q_DECL_OVERRIDE
{
int Lookup(c4_Cursor key_, int &count_) Q_DECL_OVERRIDE {
int pos = 0;
count_ = _base.GetSize();
return _base.RestrictSearch(*key_, pos, count_);
}
bool GetItem(int row_, int col_, c4_Bytes &buf_) Q_DECL_OVERRIDE
{
bool GetItem(int row_, int col_, c4_Bytes &buf_) Q_DECL_OVERRIDE {
return _base.GetItem(row_, col_, buf_);
}
};
......
......@@ -558,7 +558,6 @@ void ActionManagerImpl::initTabWidget(TabWidget *tabWidget)
action = KStandardAction::printPreview(d->tabWidget, SLOT(slotPrintPreview()), coll);
coll->addAction(QStringLiteral("viewer_printpreview"), action);
action = coll->addAction(QStringLiteral("tab_mute"));
action->setText(i18n("Mute"));
connect(action, &QAction::triggered, d->tabWidget, &TabWidget::slotMute);
......
......@@ -356,7 +356,7 @@ void ArticleViewerWebEngine::forwardWheelEvent(QWheelEvent *e)
ActionManager::getInstance()->zoomActionMenu()->setZoomFactor(factor);
ActionManager::getInstance()->zoomActionMenu()->setWebViewerZoomFactor(factor / 100.0);
}
e->accept();
e->accept();
}
}
......
......@@ -364,7 +364,7 @@ void ArticleViewerWidget::keyPressEvent(QKeyEvent *e)
void ArticleViewerWidget::updateAfterConfigChanged()
{
switch(m_viewMode) {
switch (m_viewMode) {
case NormalView:
if (!m_article.isNull()) {
renderContent(m_normalViewFormatter->formatArticles(QVector<Akregator::Article>() << m_article, ArticleFormatter::ShowIcon));
......
......@@ -341,7 +341,7 @@ void TabWidget::slotWebPageMutedOrAudibleChanged(Akregator::Frame *frame, bool i
if (idx < 0) {
return;
}
qDebug() << "void TabWidget::slotWebPageMutedOrAudibleChanged(Akregator::Frame *frame, bool isAudioMuted, bool wasRecentlyAudible)"<<isAudioMuted<< " wasRecentlyAudible" << wasRecentlyAudible;
qDebug() << "void TabWidget::slotWebPageMutedOrAudibleChanged(Akregator::Frame *frame, bool isAudioMuted, bool wasRecentlyAudible)" << isAudioMuted << " wasRecentlyAudible" << wasRecentlyAudible;
//TODO
//setTabIcon(idx, icon);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment