move blueprints out of the sidebar into Ctrl+C / Ctrl+V dialogs
This commit is contained in:
@@ -96,16 +96,6 @@ namespace
|
||||
return result;
|
||||
}
|
||||
|
||||
// A pixmap's size in device-independent pixels. The pixmaps composed here are
|
||||
// rasterized at the device pixel ratio, so their raw size is not their layout size.
|
||||
QSize getLogicalSize(const QPixmap& pixmap)
|
||||
{
|
||||
if (pixmap.isNull()) { return QSize(0, 0); }
|
||||
const qreal dpr = pixmap.devicePixelRatio();
|
||||
return QSize(static_cast<int>(pixmap.width() / dpr),
|
||||
static_cast<int>(pixmap.height() / dpr));
|
||||
}
|
||||
|
||||
// One button face: the hotkey badge in the top-left corner, the chip icon centered
|
||||
// below it, and the caption — the cost, or the Deconstruct name — centered at the
|
||||
// bottom (REQ-UI-BUILD-COST). The three are composed into a single pixmap because
|
||||
|
||||
Reference in New Issue
Block a user