forked from qt-creator/qt-creator
Make some qHash and comparison operators overloads hidden friends
Restricts lookup scope more to necessary bits. Change-Id: Ia42c95aaa70534843b7f6a90bfc56d2a1202c612 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -75,20 +75,20 @@ namespace Core {
|
||||
|
||||
struct CompletionEntry
|
||||
{
|
||||
friend QDebug operator<<(QDebug d, const CompletionEntry &e)
|
||||
{
|
||||
QDebugStateSaver saver(d);
|
||||
d.noquote();
|
||||
d.nospace();
|
||||
d << "CompletionEntry(\"" << e.text << "\", flags="
|
||||
<< "0x" << QString::number(e.findFlags, 16) << ')';
|
||||
return d;
|
||||
}
|
||||
|
||||
QString text;
|
||||
FindFlags findFlags;
|
||||
};
|
||||
|
||||
QDebug operator<<(QDebug d, const CompletionEntry &e)
|
||||
{
|
||||
QDebugStateSaver saver(d);
|
||||
d.noquote();
|
||||
d.nospace();
|
||||
d << "CompletionEntry(\"" << e.text << "\", flags="
|
||||
<< "0x" << QString::number(e.findFlags, 16) << ')';
|
||||
return d;
|
||||
}
|
||||
|
||||
class CompletionModel : public QAbstractListModel
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user