<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello Lubomir,<br>
    </p>
    <br>
    <div class="moz-cite-prefix">Am 18.04.2017 um 16:00 schrieb Lubomir
      I. Ivanov:<br>
    </div>
    <blockquote
cite="mid:CAGDbWi8hW-qX5q4d6PSOqHwZk3am_VzQJvPNy51jF9fnERkQPg@mail.gmail.com"
      type="cite">
      <pre wrap="">i must admit i followed Thiago's suggestions blindly.
Thiago, do you have an idea why this happens?

the macro:
#define mDebug qCDebug(Marble::loggingCategory)

expands calls like this one:
mDebug() << "innerRing: size" << p()->inner.size();

to:
qCDebug(Marble::loggingCategory)() << "innerRing: size" <<
p()->inner.size();

is it complaining about the extra()?

Yes! Yes! Thats it <span class="moz-smiley-s3" title=";-)"><span>;-)</span></span>

Changed to:
#define mDebug() qCDebug(Marble::loggingCategory)

and it compiles.</pre>
    </blockquote>
    Good news: Some parts work if I comment out what still gives an
    error (see below). Logging works but is always on for marble.<br>
    <br>
    Bad news: <br>
    The function<br>
    void MarbleDebug::setEnabled(bool enabled)<br>
    {<br>
        loggingCategory().setEnabled(QtDebugMsg, enabled);<br>
    }<br>
    still doesn' compile. Error:<br>
/home/stefan/Entwicklung/Subsurface/marble-source/src/lib/marble/MarbleDebug.cpp:27:53:
    error: passing 'const QLoggingCategory' as 'this' argument of 'void
    QLoggingCategory::setEnabled(QtMsgType, bool)' discards qualifiers
    [-fpermissive]<br>
         loggingCategory().setEnabled(QtDebugMsg, enabled);<br>
    <br>
    Also this version:<br>
    void MarbleDebug::setEnabled(bool enabled)<br>
    {<br>
        loggingCategory.setEnabled(QtDebugMsg, enabled);<br>
    }<br>
    doesn't compile. Error:<br>
/home/stefan/Entwicklung/Subsurface/marble-source/src/lib/marble/MarbleDebug.cpp:
    In static member function 'static void
    Marble::MarbleDebug::setEnabled(bool)':<br>
/home/stefan/Entwicklung/Subsurface/marble-source/src/lib/marble/MarbleDebug.cpp:27:21:
    error: request for member 'setEnabled' in 'Marble::loggingCategory',
    which is of non-class type 'const QLoggingCategory&()'<br>
         loggingCategory.setEnabled(QtDebugMsg, enabled);<br>
    <br>
    <br>
    Stefan<br>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
      <title></title>
      <meta name="GENERATOR" content="OpenOffice.org 3.3 (Win32)">
      <meta name="CREATED" content="0;0">
      <meta name="CHANGEDBY" content="Stefan Fuchs">
      <meta name="CHANGED" content="20120503;23115492">
      <style type="text/css">
        <!--
                P { color: #000000 }
        -->
        </style>
      <p>Stefan Fuchs<br>
        E-Mail: <a href="mailto:sfuchs@gmx.de">sfuchs@gmx.de</a></p>
    </div>
  </body>
</html>