Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance: improve code for room custom exit lines in 2D map #2106

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
210 changes: 103 additions & 107 deletions src/T2DMap.cpp

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions src/T2DMap.h
Expand Up @@ -135,12 +135,17 @@ class T2DMap : public QWidget
int mCustomLinesRoomFrom;
int mCustomLinesRoomTo;
QString mCustomLinesRoomExit;
QComboBox* mpCurrentLineStyle;
QString mCurrentLineStyle;
QPushButton* mpCurrentLineColor;

// Pointers to controls that hold the settings
QPointer<QComboBox> mpCurrentLineStyle;
QPointer<QPushButton> mpCurrentLineColor;
QPointer<QCheckBox> mpCurrentLineArrow;

// Variables that hold the current or last used setting:
Qt::PenStyle mCurrentLineStyle;
QColor mCurrentLineColor;
QCheckBox* mpCurrentLineArrow;
bool mCurrentLineArrow;

bool mBubbleMode;
bool mMapperUseAntiAlias;
bool mLabelHighlighted;
Expand Down