I have been programming with Qt for some time now and I have come across a non-Qt code snippet that uses the following:
namespace MySpace {
class MyClass;
enum { SomeProperty
= QTextFormat::UserProperty + 248 };
...
}
namespace MySpace {
class MyClass;
enum { SomeProperty = QTextFormat::UserProperty + 248 };
...
}
To copy to clipboard, switch view to plain text mode
and is later reference by:
namespace MySpace {
MyClass::MyClass()
{
myFunction(MySpace::SomePropery, param2);
...
}
namespace MySpace {
MyClass::MyClass()
{
myFunction(MySpace::SomePropery, param2);
...
}
To copy to clipboard, switch view to plain text mode
I am sure I should know what this is doing - but like a newbie ... I have no idea.
Can someone explain?
Environment:
Linux Mint 17.2
Qt Open Source 32 bit v5.5.1
Bookmarks