Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 5647d811 authored by Daniel Nicoletti's avatar Daniel Nicoletti

Reduce build time by including mocs files

parent 2a568ebd
......@@ -113,3 +113,5 @@ void AddPrinter::show(QWidget *widget, qulonglong wid) const
KWindowSystem::forceActiveWindow(widget->winId());
KWindowSystem::setMainWindow(widget, wid);
}
#include "moc_AddPrinter.cpp"
......@@ -242,3 +242,5 @@ void AddPrinterAssistant::enableFinishButton(bool enable)
{
finishButton()->setEnabled(enable);
}
#include "moc_AddPrinterAssistant.cpp"
......@@ -89,3 +89,5 @@ void ChooseLpd::checkSelected()
{
// emit allowProceed(!devicesLV->selectionModel()->selection().isEmpty());
}
#include "moc_ChooseLpd.cpp"
......@@ -129,3 +129,5 @@ void ChooseSamba::checkSelected()
{
emit allowProceed(isValid());
}
#include "moc_ChooseSamba.cpp"
......@@ -118,3 +118,5 @@ QVariantHash ChooseSerial::values() const
ret[KCUPS_DEVICE_URI] = deviceUri;
return ret;
}
#include "moc_ChooseSerial.cpp"
......@@ -85,3 +85,5 @@ void ChooseSocket::on_addressLE_textChanged(const QString &text)
Q_UNUSED(text)
emit allowProceed(canProceed());
}
#include "moc_ChooseSocket.cpp"
......@@ -169,3 +169,5 @@ QUrl ChooseUri::parsedURL(const QString &text) const
}
return url;
}
#include "moc_ChooseUri.cpp"
......@@ -378,3 +378,5 @@ QStandardItem* DevicesModel::findCreateCategory(const QString &category)
return catItem;
}
#include "moc_DevicesModel.cpp"
......@@ -49,3 +49,5 @@ void GenericPage::setValues(const QVariantHash &args)
{
m_args = args;
}
#include "moc_GenericPage.cpp"
......@@ -174,3 +174,5 @@ void PageAddPrinter::checkSelected()
{
// emit allowProceed(!devicesLV->selectionModel()->selection().isEmpty());
}
#include "moc_PageAddPrinter.cpp"
......@@ -203,3 +203,5 @@ void PageChoosePPD::removeTempPPD()
m_ppdFile.clear();
}
}
#include "moc_PageChoosePPD.cpp"
......@@ -90,3 +90,5 @@ bool PageChoosePrinters::canProceed() const
{
return ui->membersLV->selectedPrinters().count() > 0;
}
#include "moc_PageChoosePrinters.cpp"
......@@ -398,3 +398,5 @@ QString PageDestinations::uriText(const QString &uri) const
}
return ret;
}
#include "moc_PageDestinations.cpp"
......@@ -203,3 +203,5 @@ bool ConfigureDialog::savePage(PrinterPage *page)
}
return true;
}
#include "moc_ConfigureDialog.cpp"
......@@ -46,3 +46,5 @@ void ConfigurePrinter::configurePrinter(const QString& printer)
ConfigurePrinter::~ConfigurePrinter()
{
}
#include "moc_ConfigurePrinter.cpp"
......@@ -120,3 +120,5 @@ void ConfigurePrinterInterface::RemovePrinter()
emit quit();
}
}
#include "moc_ConfigurePrinterInterface.cpp"
......@@ -293,3 +293,5 @@ QStringList ModifyPrinter::neededValues() const
}
return ret;
}
#include "moc_ModifyPrinter.cpp"
......@@ -323,3 +323,5 @@ QStringList PrinterBehavior::neededValues() const
KCUPS_REQUESTING_USER_NAME_DENIED
});
}
#include "moc_PrinterBehavior.cpp"
......@@ -823,3 +823,5 @@ QString PrinterOptions::currentMakeAndModel() const
{
return m_makeAndModel;
}
#include "moc_PrinterOptions.cpp"
......@@ -36,3 +36,5 @@ QVariantHash PrinterPage::modifiedValues() const
void PrinterPage::setRemote(bool)
{
}
#include "moc_PrinterPage.cpp"
......@@ -85,3 +85,5 @@ SelectMakeModel *SelectMakeModelDialog::mainWidget() const
{
return m_widget;
}
#include "moc_SelectMakeModelDialog.cpp"
......@@ -36,3 +36,5 @@ void QmlPlugins::registerTypes(const char* uri)
qmlRegisterType<JobSortFilterModel>(uri, 0, 2, "JobSortFilterModel");
qmlRegisterType<ProcessRunner>(uri, 0, 2, "ProcessRunner");
}
#include "moc_qmlplugins.cpp"
......@@ -180,3 +180,5 @@ void ClassListWidget::setShowClasses(bool enable)
m_delayedInit.start();
}
}
#include "moc_ClassListWidget.cpp"
......@@ -626,3 +626,5 @@ QString JobModel::processingJob() const
{
return m_processingJob;
}
#include "moc_JobModel.cpp"
......@@ -134,3 +134,5 @@ int JobSortFilterModel::weightForState(int state) const
break;
}
}
#include "moc_JobSortFilterModel.cpp"
......@@ -893,3 +893,5 @@ const char * password_cb(const char *prompt, http_t *http, const char *method, c
return NULL;
}
}
#include "moc_KCupsConnection.cpp"
......@@ -82,3 +82,5 @@ QString KCupsPasswordDialog::password() const
{
return m_password;
}
#include "moc_KCupsPasswordDialog.cpp"
/***************************************************************************
* Copyright (C) 2010-2012 by Daniel Nicoletti *
* Copyright (C) 2010-2018 by Daniel Nicoletti *
* dantti12@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
......
......@@ -665,3 +665,5 @@ void KCupsRequest::setFinished(bool delayed)
emit finished(this);
}
}
#include "moc_KCupsRequest.cpp"
......@@ -36,3 +36,5 @@ void NoSelectionRectDelegate::paint(QPainter *painter,
}
QStyledItemDelegate::paint(painter, opt, index);
}
#include "moc_NoSelectionRectDelegate.cpp"
......@@ -124,3 +124,5 @@ QStandardItem *PPDModel::createPPDItem(const QVariantHash &ppd, bool recommended
return ret;
}
#include "moc_PPDModel.cpp"
......@@ -523,3 +523,5 @@ void PrinterModel::serverChanged(const QString &text)
qCDebug(LIBKCUPS) << text;
update();
}
#include "moc_PrinterModel.cpp"
......@@ -96,3 +96,5 @@ bool PrinterSortFilterModel::lessThan(const QModelIndex &left, const QModelIndex
return QSortFilterProxyModel::lessThan(left, right);
}
#include "moc_PrinterSortFilterModel.cpp"
......@@ -41,3 +41,5 @@ void ProcessRunner::openPrintKCM()
{
QProcess::startDetached(QLatin1String("kcmshell5"), {QLatin1String("kcm_printer_manager")});
}
#include "moc_ProcessRunner.cpp"
......@@ -310,3 +310,5 @@ void SelectMakeModel::selectRecommendedPPD()
}
}
}
#include "moc_SelectMakeModel.cpp"
......@@ -290,3 +290,5 @@ QStringList NewPrinterNotification::getMissingExecutables(const QString &ppdFile
}
return reply;
}
#include "moc_NewPrinterNotification.cpp"
......@@ -24,10 +24,6 @@
#include <QTimer>
#include <KPluginFactory>
K_PLUGIN_FACTORY(PrintDFactory, registerPlugin<PrintManagerKded>();)
PrintManagerKded::PrintManagerKded(QObject *parent, const QVariantList &args) :
KDEDModule(parent)
{
......@@ -48,4 +44,4 @@ void PrintManagerKded::loadThread()
m_newPrinterNotification = new NewPrinterNotification;
}
#include "PrintManagerKded.moc"
#include "moc_PrintManagerKded.cpp"
/***************************************************************************
* Copyright (C) 2010-2012 by Daniel Nicoletti *
* Copyright (C) 2010-2018 by Daniel Nicoletti *
* dantti12@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
......@@ -22,6 +22,7 @@
#define PRINTMANAGERKDED_H
#include <KDEDModule>
#include <KPluginFactory>
#include <QVariantList>
......@@ -33,11 +34,12 @@ public:
PrintManagerKded(QObject *parent, const QVariantList &args);
~PrintManagerKded();
private slots:
private:
void loadThread();
private:
NewPrinterNotification *m_newPrinterNotification = nullptr;
};
K_PLUGIN_FACTORY(PrintDFactory, registerPlugin<PrintManagerKded>();)
#endif // PRINTMANAGERKDED_H
......@@ -30,7 +30,6 @@
#include "PrinterDescription.h"
#include <KMessageBox>
#include <KPluginFactory>
#include <KAboutData>
#include <KToolInvocation>
#include <KIconLoader>
......@@ -43,8 +42,6 @@
#include <cups/cups.h>
K_PLUGIN_FACTORY(PrintKCMFactory, registerPlugin<PrintKCM>();)
PrintKCM::PrintKCM(QWidget *parent, const QVariantList &args) :
KCModule(parent, args),
ui(new Ui::PrintKCM)
......@@ -380,4 +377,4 @@ void PrintKCM::systemPreferencesTriggered()
request->setServerSettings(server);
}
#include "PrintKCM.moc"
#include "moc_PrintKCM.cpp"
......@@ -22,8 +22,9 @@
#define PRINT_KCM_H
#include <KCModule>
#include <QIcon>
#include <KPluginFactory>
#include <QIcon>
#include <QAction>
#include <KCupsServer.h>
......@@ -67,4 +68,6 @@ private:
QAction *m_allowUsersCancelAnyJob;
};
K_PLUGIN_FACTORY(PrintKCMFactory, registerPlugin<PrintKCM>();)
#endif
......@@ -181,3 +181,5 @@ QSize PrinterDelegate::sizeHint(const QStyleOptionViewItem &option,
return QSize(width, calcItemHeight(option));
}
#include "moc_PrinterDelegate.cpp"
......@@ -277,3 +277,5 @@ void PrinterDescription::on_configurePB_clicked()
{
QProcess::startDetached(QLatin1String("configure-printer"), {m_destName});
}
#include "moc_PrinterDescription.cpp"
......@@ -117,3 +117,5 @@ void PrintQueue::removeQueue()
quit();
}
}
#include "moc_PrintQueue.cpp"
......@@ -604,3 +604,5 @@ void PrintQueueUi::closeEvent(QCloseEvent *event)
emit finished();
QWidget::closeEvent(event);
}
#include "moc_PrintQueueUi.cpp"
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