Changeset View
Changeset View
Standalone View
Standalone View
src/wrtembed/KoReportDesigner.cpp
Show First 20 Lines • Show All 1326 Lines • ▼ Show 20 Line(s) | 1323 | { | |||
---|---|---|---|---|---|
1327 | return false; | 1327 | return false; | ||
1328 | } | 1328 | } | ||
1329 | 1329 | | |||
1330 | QList<QAction*> KoReportDesigner::itemActions(QActionGroup* group) | 1330 | QList<QAction*> KoReportDesigner::itemActions(QActionGroup* group) | ||
1331 | { | 1331 | { | ||
1332 | KoReportPluginManager* manager = KoReportPluginManager::self(); | 1332 | KoReportPluginManager* manager = KoReportPluginManager::self(); | ||
1333 | QList<QAction*> actList = manager->actions(); | 1333 | QList<QAction*> actList = manager->actions(); | ||
1334 | 1334 | | |||
1335 | QAction *act = new QAction(QIcon::fromTheme(QLatin1String("draw-line")), tr("Line"), group); | 1335 | //! @todo make line a real plugin so this isn't needed: | ||
1336 | QAction *act = new QAction(QIcon::fromTheme(QLatin1String("kreport_line_element")), tr("Line"), group); | ||||
1336 | act->setObjectName(QLatin1String("org.kde.kreport.line")); | 1337 | act->setObjectName(QLatin1String("org.kde.kreport.line")); | ||
1337 | act->setData(9); | 1338 | act->setData(9); | ||
1338 | act->setCheckable(true); | 1339 | act->setCheckable(true); | ||
1339 | actList << act; | 1340 | actList << act; | ||
1340 | 1341 | | |||
1341 | qSort(actList.begin(), actList.end(), actionPriortyLessThan); | 1342 | qSort(actList.begin(), actList.end(), actionPriortyLessThan); | ||
1342 | int i = 0; | 1343 | int i = 0; | ||
1343 | 1344 | | |||
▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines |