event more commenting.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
|
||||
//! firz
|
||||
//! hilfsfunktion: gibt diesen teilbaum rekursiv aus
|
||||
|
||||
void inspect( const XQNodePtr& node, int indent )
|
||||
{
|
||||
@@ -34,9 +34,7 @@ void inspect( const XQNodePtr& node, int indent )
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//! firz
|
||||
//! operator<< für QString und std::ostream
|
||||
|
||||
// Overload the operator<< for MyClass and std::ostream
|
||||
std::ostream& operator<<(std::ostream& os, const QString& obj)
|
||||
@@ -47,7 +45,8 @@ std::ostream& operator<<(std::ostream& os, const QString& obj)
|
||||
}
|
||||
|
||||
|
||||
//! firz
|
||||
//! 'QString' implementation von split
|
||||
|
||||
template<>
|
||||
bool znode::zpayload<QString>::xstr_split_by(const QString& entry, const QString& sep, QString& key, QString& value )
|
||||
{
|
||||
@@ -60,7 +59,7 @@ bool znode::zpayload<QString>::xstr_split_by(const QString& entry, const QString
|
||||
}
|
||||
|
||||
|
||||
//! firz
|
||||
//! 'QString' implementation von substr
|
||||
|
||||
template<>
|
||||
QString znode::zpayload<QString>::xstr_sub_str( const QString& entry, int pos ) const
|
||||
@@ -69,7 +68,7 @@ QString znode::zpayload<QString>::xstr_sub_str( const QString& entry, int pos )
|
||||
}
|
||||
|
||||
|
||||
//! firz
|
||||
//! 'QString' implementation vom test auf 'empty'
|
||||
|
||||
template<>
|
||||
bool znode::zpayload<QString>::xstr_is_empty(const QString& entry ) const
|
||||
@@ -78,7 +77,7 @@ bool znode::zpayload<QString>::xstr_is_empty(const QString& entry ) const
|
||||
}
|
||||
|
||||
|
||||
//! firz
|
||||
//! 'QString' varianten der keystrings.
|
||||
|
||||
template<>
|
||||
const QString znode::zpayload<QString>::cType = "Type";
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
|
||||
//! firz
|
||||
//! schreibt einen (teil)baum in ein file
|
||||
|
||||
void XQNodeWriter::dumpTree( XQNodePtr rootNode, const QString& fileName ) const
|
||||
{
|
||||
@@ -40,7 +40,8 @@ void XQNodeWriter::dumpTree( XQNodePtr rootNode, const QString& fileName ) const
|
||||
treeFile.close();
|
||||
}
|
||||
|
||||
//! firz
|
||||
|
||||
//! schreibt einen knoten in einen stream
|
||||
|
||||
void XQNodeWriter::dumpNode( QXmlStreamWriter& writer, XQNodePtr node ) const
|
||||
{
|
||||
|
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
|
||||
//! firz
|
||||
//! konstruiert ein selectionmodel.
|
||||
|
||||
XQSelectionModel::XQSelectionModel(QAbstractItemModel* model)
|
||||
: QItemSelectionModel(model)
|
||||
@@ -26,7 +26,7 @@ XQSelectionModel::XQSelectionModel(QAbstractItemModel* model)
|
||||
}
|
||||
|
||||
|
||||
//! firz
|
||||
//! konstruiert ein selectionmodel.
|
||||
|
||||
XQSelectionModel::XQSelectionModel(QAbstractItemModel* model, QObject* parent)
|
||||
: QItemSelectionModel(model, parent)
|
||||
@@ -40,7 +40,7 @@ XQSelectionModel::XQSelectionModel(QAbstractItemModel* model, QObject* parent)
|
||||
void XQSelectionModel::select(const QItemSelection& selection, QItemSelectionModel::SelectionFlags command)
|
||||
{
|
||||
// step #0: fetch selected indices.
|
||||
QModelIndexList list = selection.indexes();
|
||||
const QModelIndexList list = selection.indexes();
|
||||
if (list.isEmpty() || selectedRows().isEmpty() )
|
||||
return QItemSelectionModel::select(selection, command);
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
#include <xqviewmodel.h>
|
||||
|
||||
|
||||
//! firz
|
||||
//! true, wenn paste an er stelle 'curIdx' möglich ist.
|
||||
|
||||
bool XQSimpleClipBoard::canPaste( const QModelIndex& curIdx ) const
|
||||
{
|
||||
@@ -38,7 +38,9 @@ bool XQSimpleClipBoard::canPaste( const QModelIndex& curIdx ) const
|
||||
}
|
||||
|
||||
|
||||
//! firz
|
||||
//! erzeugt eine positions-list aus der liste selectierter indicies.
|
||||
//! Der mit seiner position zusammen gespeicherter knoten muss hier
|
||||
//! gekloned werden.
|
||||
|
||||
void XQSimpleClipBoard::saveNodes( const QModelIndexList& list )
|
||||
{
|
||||
|
Reference in New Issue
Block a user