MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / listAddClicked

Function listAddClicked

lib/utils/utility.cpp:58–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void listAddClicked(QListWidget *list, QWidget *newWidget,
59 QObject **addHighlight)
60{
61 if (!list || !newWidget) {
62 return;
63 }
64
65 if (addHighlight && *addHighlight) {
66 (*addHighlight)->deleteLater();
67 *addHighlight = nullptr;
68 }
69
70 QListWidgetItem *item;
71 item = new QListWidgetItem(list);
72 list->addItem(item);
73 item->setSizeHint(newWidget->minimumSizeHint());
74 list->setItemWidget(item, newWidget);
75
76 list->scrollToItem(item);
77}
78
79bool listMoveUp(QListWidget *list)
80{

Callers 13

on_timeAdd_clickedMethod · 0.85
on_pauseAdd_clickedMethod · 0.85
on_windowAdd_clickedMethod · 0.85
on_randomAdd_clickedMethod · 0.85
on_fileAdd_clickedMethod · 0.85
on_videoAdd_clickedMethod · 0.85
on_mediaAdd_clickedMethod · 0.85

Calls 1

minimumSizeHintMethod · 0.80

Tested by

no test coverage detected