|
@@ -12834,16 +12834,16 @@ information needed to respond to its activation by generating the appropriate
|
12834
|
12834
|
report.
|
12835
|
12835
|
|
12836
|
12836
|
@<Class declarations@>=
|
12837
|
|
-class ReportAction : public QAction
|
12838
|
|
-{
|
12839
|
|
- Q_OBJECT
|
12840
|
|
- public:
|
|
12837
|
+class ReportAction : public QAction@/
|
|
12838
|
+{@/
|
|
12839
|
+ @[Q_OBJECT@]@;
|
|
12840
|
+ public:@/
|
12841
|
12841
|
ReportAction(const QString &fileName, const QString &reportName,
|
12842
|
|
- QObject *parent = NULL);
|
12843
|
|
- private slots:
|
12844
|
|
- void createReport();
|
12845
|
|
- private:
|
12846
|
|
- QString reportFile;
|
|
12842
|
+ QObject *parent = NULL);@/
|
|
12843
|
+ @[private slots@]:@/
|
|
12844
|
+ void createReport();@/
|
|
12845
|
+ private:@/
|
|
12846
|
+ QString reportFile;@/
|
12847
|
12847
|
};
|
12848
|
12848
|
|
12849
|
12849
|
@ The constructor receives the name of the report file which is used to
|
|
@@ -12921,7 +12921,7 @@ It is advised to keep these hierarchies shallow.
|
12921
|
12921
|
for(int j = 0; j < hierarchy.size() - 1; j++)
|
12922
|
12922
|
{
|
12923
|
12923
|
QObjectList menuList = insertionPoint->children();
|
12924
|
|
- bool menuFound = false;
|
|
12924
|
+ bool menuFound = @[false@];
|
12925
|
12925
|
for(int k = 0; k < menuList.size(); k++)
|
12926
|
12926
|
{
|
12927
|
12927
|
QMenu *currentItem = qobject_cast<QMenu*>(menuList.at(k));
|
|
@@ -12929,7 +12929,7 @@ for(int j = 0; j < hierarchy.size() - 1; j++)
|
12929
|
12929
|
{
|
12930
|
12930
|
if(currentItem->title() == hierarchy.at(j))
|
12931
|
12931
|
{
|
12932
|
|
- menuFound = true;
|
|
12932
|
+ menuFound = @[true@];
|
12933
|
12933
|
insertionPoint = currentItem;
|
12934
|
12934
|
break;
|
12935
|
12935
|
}
|