MCPcopy Create free account
hub / github.com/KDAB/KDChart / alignmentToScreenName

Method alignmentToScreenName

examples/DataValueTexts/mainwindow.cpp:348–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348const QString MainWindow::alignmentToScreenName(const Qt::Alignment &align) const
349{
350 if (align == Qt::AlignCenter)
351 return "Center";
352 if (align == (Qt::AlignLeft | Qt::AlignBottom))
353 return "BottomLeft";
354 if (align == (Qt::AlignHCenter | Qt::AlignBottom))
355 return "Bottom";
356 if (align == (Qt::AlignRight | Qt::AlignBottom))
357 return "BottomRight";
358 if (align == (Qt::AlignRight | Qt::AlignVCenter))
359 return "Right";
360 if (align == (Qt::AlignRight | Qt::AlignTop))
361 return "TopRight";
362 if (align == (Qt::AlignHCenter | Qt::AlignTop))
363 return "Top";
364 if (align == (Qt::AlignLeft | Qt::AlignTop))
365 return "TopLeft";
366 if (align == (Qt::AlignLeft | Qt::AlignVCenter))
367 return "Left";
368 return "Center";
369}
370
371void MainWindow::populateWidgets()
372{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected