clangformat and GraphicElement::style comments
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
db7edbf0b3
commit
03f92948d1
@ -155,10 +155,10 @@ struct GraphicElement
|
|||||||
|
|
||||||
enum style_t
|
enum style_t
|
||||||
{
|
{
|
||||||
G_FRAME,
|
G_FRAME, // Static "frame". Contrast between G_INACTIVE and G_ACTIVE
|
||||||
G_HIDDEN,
|
G_HIDDEN, // Only display when object is selected or highlighted
|
||||||
G_INACTIVE,
|
G_INACTIVE, // Render using low-contrast color
|
||||||
G_ACTIVE,
|
G_ACTIVE, // Render using high-contast color
|
||||||
} style = G_FRAME;
|
} style = G_FRAME;
|
||||||
|
|
||||||
float x1 = 0, y1 = 0, x2 = 0, y2 = 0, z = 0;
|
float x1 = 0, y1 = 0, x2 = 0, y2 = 0, z = 0;
|
||||||
|
@ -784,11 +784,9 @@ void DesignWidget::updateHighlightGroup(QList<QTreeWidgetItem*> items, int group
|
|||||||
if (highlightSelected.contains(item)) {
|
if (highlightSelected.contains(item)) {
|
||||||
if (shouldClear && highlightSelected[item] == group) {
|
if (shouldClear && highlightSelected[item] == group) {
|
||||||
highlightSelected.remove(item);
|
highlightSelected.remove(item);
|
||||||
}
|
} else
|
||||||
else
|
|
||||||
highlightSelected[item] = group;
|
highlightSelected[item] = group;
|
||||||
}
|
} else
|
||||||
else
|
|
||||||
highlightSelected.insert(item, group);
|
highlightSelected.insert(item, group);
|
||||||
}
|
}
|
||||||
std::vector<DecalXY> decals[8];
|
std::vector<DecalXY> decals[8];
|
||||||
|
@ -296,6 +296,7 @@ class FPGAViewWidget : public QOpenGLWidget, protected QOpenGLFunctions
|
|||||||
void zoom_out();
|
void zoom_out();
|
||||||
void zoom_selected();
|
void zoom_selected();
|
||||||
void zoom_outbound();
|
void zoom_outbound();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void renderLines(void);
|
void renderLines(void);
|
||||||
void zoom(int level);
|
void zoom(int level);
|
||||||
|
Loading…
Reference in New Issue
Block a user