diff --git a/libs/taxidermy/QWidgetBuilder.cpp b/libs/taxidermy/QWidgetBuilder.cpp index b2cef6c08fe78468b5b115de18532620ab03989b..49abd51202eac98b02a26b709282eae86f5ab7ee 100644 --- a/libs/taxidermy/QWidgetBuilder.cpp +++ b/libs/taxidermy/QWidgetBuilder.cpp @@ -58,7 +58,6 @@ taxidermy::QWidgetBuilder::load(const QMap< QString, QString > &values) mBackgroundImage = qtutils::transparize(*bimage); } else { - std::cout << *bimage << " is not trans\n"; qtutils::retreive(*bimage, mBackgroundImage); } } diff --git a/libs/taxidermy/doc.txt b/libs/taxidermy/doc.txt new file mode 100644 index 0000000000000000000000000000000000000000..abfcbacd6e8ab746c53013766e5f6cc9d8a7be35 --- /dev/null +++ b/libs/taxidermy/doc.txt @@ -0,0 +1,31 @@ + +QWidget: +You can specify many kinds of options for a QWidget: + +Position: there's two options for the position of a widget: +- x: the x position of the widget, relative to the parent. +- y: the y position of the widget, relative to the parent. +You need to specify both of them in order to be valid. + +Size: you can specify the size of a widget with thow option: +- height: the height of a widget. +- width: the width of a widget. +You need to specify both of them in order to be valid. + + +Background: You can specifiy background's color or a pixmap to be the +background of an image. There's three options that manages the background: + + - bImage: the pixmap name to be used. + - tranparent: if the pixmap has an alpha buffer, the label will use the pixmap mask. + This is the default option. + - force_transparent: If this is specified it will try to use the alpha buffer, if + there's no alpha buffer, it will create a heuristic mask. + - bColor: the color of the background. + + bImage has a higher priority over bColor. It means that if you specify +both attributes, the bImage will be used. However, if the image is not +valid, the color will be used. + If you specifiy an image for background the widget will be resized to the +size of the image. If you specify the size with an image, the size of the +image will be used instead of the image. \ No newline at end of file diff --git a/libs/utilspp/NonCopyable.hpp b/libs/utilspp/NonCopyable.hpp index eb5443129393b24f22cc0f223401d65bee763602..83ec499a40eb52678273222db97406184b433fe1 100644 --- a/libs/utilspp/NonCopyable.hpp +++ b/libs/utilspp/NonCopyable.hpp @@ -33,7 +33,7 @@ namespace utilspp {} private: - NonCopyable(const NonCopyable& r) + NonCopyable(const NonCopyable&) {} }; };