Add 'New Tileset...' button when no tileset is opened #1789
bjorn left a comment
I've tried it out but, but here's out it looks on my side:
There's two problems here:
You'll need to set a layout (probably
I tried to center the button, but no matter which way I took the problem from, I couldn't do better than that.
This is a simple task, yet somehow the QGridLayout widget is not taking the whole space the QDockWidget provides, so the button is centered horizontally but not vertically.
I surrounded it with QSpacerItem objects, but I couldn't center it vertically anyway.
Tell me if this is good enough (I really hope it is)
Of course it isn't good enough to have a bunch of code sitting there not achieving what it is meant to do. :-)
It wasn't easy for me either to find out what was going on though. A compiler warning would have certainly helped, but in C++ passing an enum value to an