~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/plugins/qtsupport/profilereader.cpp

  • Committer: Timo Jyrinki
  • Date: 2013-12-02 09:16:15 UTC
  • mfrom: (1.1.29)
  • Revision ID: timo.jyrinki@canonical.com-20131202091615-xbj1os1f604ber1m
New upstream release candidate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
ProMessageHandler::ProMessageHandler(bool verbose)
49
49
    : m_verbose(verbose)
50
50
{
51
 
    QObject::connect(this, SIGNAL(errorFound(QString,Core::MessageManager::PrintToOutputPaneFlags)),
 
51
    QObject::connect(this, SIGNAL(writeMessage(QString,Core::MessageManager::PrintToOutputPaneFlags)),
52
52
                     Core::MessageManager::instance(), SLOT(write(QString,Core::MessageManager::PrintToOutputPaneFlags)),
53
53
                     Qt::QueuedConnection);
54
54
}
56
56
void ProMessageHandler::message(int type, const QString &msg, const QString &fileName, int lineNo)
57
57
{
58
58
    if ((type & CategoryMask) == ErrorMessage && ((type & SourceMask) == SourceParser || m_verbose))
59
 
        emit errorFound(format(fileName, lineNo, msg), Core::MessageManager::NoModeSwitch);
 
59
        emit writeMessage(format(fileName, lineNo, msg), Core::MessageManager::NoModeSwitch);
60
60
}
61
61
 
62
 
void ProMessageHandler::fileMessage(const QString &)
 
62
void ProMessageHandler::fileMessage(const QString &msg)
63
63
{
64
 
    // we ignore these...
 
64
    if (m_verbose)
 
65
        emit writeMessage(msg, Core::MessageManager::NoModeSwitch);
65
66
}
66
67
 
67
68
 
78
79
        pf->deref();
79
80
}
80
81
 
 
82
void ProFileReader::setCumulative(bool on)
 
83
{
 
84
    ProMessageHandler::setVerbose(!on);
 
85
    ProFileEvaluator::setCumulative(on);
 
86
}
 
87
 
81
88
void ProFileReader::aboutToEval(ProFile *, ProFile *pro, EvalFileType type)
82
89
{
83
90
    if (m_ignoreLevel || (type != EvalProjectFile && type != EvalIncludeFile)) {