Skip to content

Commit d64446f

Browse files
committed
cursor fix
1 parent ca2c70c commit d64446f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DrawingWidget.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ extern "C" {
2121
}
2222

2323
extern WhiteBoard *board;
24+
extern QWidget * mainWidget;
2425
extern QMainWindow* mainWindow;
2526
extern DrawingWidget *drawing;
2627

@@ -54,7 +55,7 @@ class CursorStorage {
5455
if(!images.contains(id)){
5556
labels[id] = new QLabel("");
5657
labels[id]->setStyleSheet(QString("background-color: none;"));
57-
images[id] = new QWidget(mainWindow);
58+
images[id] = new QWidget(mainWidget);
5859
images[id]->stackUnder(drawing);
5960
layouts[id] = new QVBoxLayout(images[id]);
6061
layouts[id]->addWidget(labels[id]);

0 commit comments

Comments
 (0)