README improved

This commit is contained in:
Uwe Rathmann 2017-07-22 18:17:53 +02:00
parent 607cb1d837
commit 89695a82d5
4 changed files with 19 additions and 26 deletions

2
.gitignore vendored
View File

@ -1,7 +1,9 @@
Makefile
.qmake.stash
obj
moc
rcc
lib
bin
qvg
*.swp

View File

@ -2,4 +2,20 @@ QSkinny
-------
The (Q)Skinny library contains a set of lightweight Qt Quick Controls.
It is implemented to 100% in C++, and can be used from C++ and/or QML application code.
It is implemented to be 100% usable in C++, but can be used from C++ and/or QML
application code.
Doing the implementation in C++ allows to make use of the "scene graph"
classes. Building controls from scene graph nodes allows for a lighter implementation
than found with stacking "heavier" objects like QObject or QQuickItem.
Being "skinny" also means a design that separates concerns between
the API and logic of the controls themselves, the styling of these controls,
and the delegated rendering of the controls to the screen.
The current selection of implemented controls is driven by the needs of specific
projects and therefore may feel a bit random. Conceptually, though, any type of
control fits into QSkinny, as long as it is usable from C++ (as opposed to only
QML).

View File

@ -172,11 +172,6 @@ QSGNode* QskImage::updatePaintNode( QSGNode* oldNode, UpdatePaintNodeData* data
if ( !isVisible() )
{
m_data->dirtyUpdate = true;
#if 0
delete oldNode;
oldNode = nullptr;
#endif
return oldNode;
}
}

View File

@ -205,27 +205,7 @@ void QskLayout::adjustItemAt( int index )
void QskLayout::updateLayout()
{
if ( m_data->isActive )
{
#if 0
// the list of items to be polished is unordered,
// while setting geometries should always be done top down
// to avoid unnecessary ( potentially heavy ) operations
QQuickItem* item = this;
while ( QQuickItem* item = item->parentItem() )
{
if ( parent->isPolishScheduled() )
{
// putting parent at the end of the list
...
return;
}
}
#endif
engine().setGeometries( alignedLayoutRect( layoutRect() ) );
}
}
QRectF QskLayout::alignedLayoutRect( const QRectF& rect ) const