mirror of https://github.com/KLayout/klayout.git
Removed tab characters from sources.
This commit is contained in:
parent
1a30fdf4b7
commit
5bedd3cd04
|
|
@ -46,7 +46,7 @@ public:
|
|||
MacroTreeModel (QObject *parent, lay::MacroEditorDialog *dialog, lym::MacroCollection *root, const std::string &cat);
|
||||
MacroTreeModel (QWidget *parent, lym::MacroCollection *root, const std::string &cat);
|
||||
|
||||
int columnCount (const QModelIndex &parent) const;
|
||||
int columnCount (const QModelIndex &parent) const;
|
||||
QVariant data (const QModelIndex &index, int role) const;
|
||||
Qt::ItemFlags flags (const QModelIndex &index) const;
|
||||
bool hasChildren (const QModelIndex &parent) const;
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ SearchReplaceResults::size () const
|
|||
return std::max (std::max (m_cell_result.size (), m_data_result.size ()), std::max (m_shape_result.size (), m_inst_result.size ())) + (m_has_more ? 1 : 0);
|
||||
}
|
||||
|
||||
int
|
||||
int
|
||||
SearchReplaceResults::columnCount (const QModelIndex & /*parent*/) const
|
||||
{
|
||||
// Note: keep last column count for empty model to avoid resize events for the header
|
||||
|
|
@ -396,7 +396,7 @@ SearchReplaceResults::data (const QModelIndex &index, int role) const
|
|||
return QVariant ();
|
||||
}
|
||||
|
||||
Qt::ItemFlags
|
||||
Qt::ItemFlags
|
||||
SearchReplaceResults::flags (const QModelIndex & /*index*/) const
|
||||
{
|
||||
return Qt::ItemIsSelectable | Qt::ItemIsEnabled;
|
||||
|
|
@ -414,7 +414,7 @@ SearchReplaceResults::hasIndex (int row, int /*column*/, const QModelIndex &pare
|
|||
return ! parent.isValid () && row < int (size ());
|
||||
}
|
||||
|
||||
QModelIndex
|
||||
QModelIndex
|
||||
SearchReplaceResults::index (int row, int column, const QModelIndex &parent) const
|
||||
{
|
||||
if (! parent.isValid ()) {
|
||||
|
|
@ -424,13 +424,13 @@ SearchReplaceResults::index (int row, int column, const QModelIndex &parent) con
|
|||
}
|
||||
}
|
||||
|
||||
QModelIndex
|
||||
QModelIndex
|
||||
SearchReplaceResults::parent (const QModelIndex & /*index*/) const
|
||||
{
|
||||
return QModelIndex ();
|
||||
}
|
||||
|
||||
int
|
||||
int
|
||||
SearchReplaceResults::rowCount (const QModelIndex &parent) const
|
||||
{
|
||||
return parent.isValid () ? 0 : int (size ());
|
||||
|
|
@ -455,7 +455,7 @@ escape_csv (const std::string &s)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
void
|
||||
SearchReplaceResults::export_csv (const std::string &file)
|
||||
{
|
||||
std::ofstream output (file.c_str ());
|
||||
|
|
@ -488,7 +488,7 @@ SearchReplaceResults::export_csv (const std::string &file)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
void
|
||||
SearchReplaceResults::export_layout (db::Layout &layout)
|
||||
{
|
||||
if (! m_data_result.empty () || ! m_cell_result.empty () || ! m_inst_result.empty ()) {
|
||||
|
|
@ -520,7 +520,7 @@ SearchReplaceResults::export_layout (db::Layout &layout)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
void
|
||||
SearchReplaceResults::export_rdb (rdb::Database &rdb, double dbu)
|
||||
{
|
||||
if (! m_cell_result.empty ()) {
|
||||
|
|
|
|||
|
|
@ -120,15 +120,15 @@ public:
|
|||
return m_cell_result;
|
||||
}
|
||||
|
||||
int columnCount (const QModelIndex &parent) const;
|
||||
int columnCount (const QModelIndex &parent) const;
|
||||
QVariant data (const QModelIndex &index, int role) const;
|
||||
Qt::ItemFlags flags (const QModelIndex &index) const;
|
||||
Qt::ItemFlags flags (const QModelIndex &index) const;
|
||||
bool hasChildren (const QModelIndex &parent) const;
|
||||
bool hasIndex (int row, int column, const QModelIndex &parent) const;
|
||||
QVariant headerData (int section, Qt::Orientation orientation, int role) const;
|
||||
QModelIndex index (int row, int column, const QModelIndex &parent) const;
|
||||
QModelIndex parent (const QModelIndex &index) const;
|
||||
int rowCount (const QModelIndex &parent) const;
|
||||
QModelIndex index (int row, int column, const QModelIndex &parent) const;
|
||||
QModelIndex parent (const QModelIndex &index) const;
|
||||
int rowCount (const QModelIndex &parent) const;
|
||||
void has_more (bool hm);
|
||||
|
||||
void export_csv (const std::string &file);
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ PYAChannelObject::make_class (PyObject *module)
|
|||
{"write", (PyCFunction) &pya_channel_write, METH_VARARGS, "internal stdout/stderr redirection object: write method" },
|
||||
{"flush", (PyCFunction) &pya_channel_flush, METH_VARARGS, "internal stdout/stderr redirection object: flush method" },
|
||||
{"isatty", (PyCFunction) &pya_channel_isatty, METH_VARARGS, "internal stdout/stderr redirection object: isatty method" },
|
||||
{NULL, NULL},
|
||||
{NULL, NULL},
|
||||
};
|
||||
|
||||
channel_type.tp_flags = Py_TPFLAGS_DEFAULT;
|
||||
|
|
@ -630,7 +630,7 @@ PYASignal::make_class (PyObject *module)
|
|||
{"remove", (PyCFunction) &pya_signal_remove, METH_VARARGS, "internal signal proxy object: -= operator" },
|
||||
{"set", (PyCFunction) &pya_signal_set, METH_VARARGS, "internal signal proxy object: assignment" },
|
||||
{"clear", (PyCFunction) &pya_signal_clear, METH_NOARGS, "internal signal proxy object: clears all receivers" },
|
||||
{NULL, NULL},
|
||||
{NULL, NULL},
|
||||
};
|
||||
|
||||
static PyNumberMethods nm = { };
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ namespace tl
|
|||
}
|
||||
|
||||
template<typename _RandomAccessIterator, typename _Distance, typename _Tp,
|
||||
typename _Compare>
|
||||
typename _Compare>
|
||||
void
|
||||
__push_heap(_RandomAccessIterator __first, _Distance __holeIndex,
|
||||
_Distance __topIndex, const _Tp &__v, _Compare __comp)
|
||||
|
|
@ -311,7 +311,7 @@ namespace tl
|
|||
}
|
||||
|
||||
template<typename _RandomAccessIterator, typename _Distance,
|
||||
typename _Tp, typename _Compare>
|
||||
typename _Tp, typename _Compare>
|
||||
void
|
||||
__adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex,
|
||||
_Distance __len, const _Tp &__v, _Compare __comp)
|
||||
|
|
@ -476,7 +476,7 @@ namespace tl
|
|||
}
|
||||
--__depth_limit;
|
||||
_RandomAccessIter __cut =
|
||||
tl::__unguarded_partition(__first, __last,
|
||||
tl::__unguarded_partition(__first, __last,
|
||||
_ValueType(tl::__median(*__first,
|
||||
*(__first + (__last - __first)/2),
|
||||
*(__last - 1), __comp)),
|
||||
|
|
|
|||
|
|
@ -1731,10 +1731,10 @@ std::string format_sci_stlport_fix (double f, int prec, unsigned int flags)
|
|||
std::string res;
|
||||
res.reserve (os.str ().size ());
|
||||
for (const char *cp = os.str ().c_str (); *cp; ++cp) {
|
||||
if (*cp == '0' && (cp[1] == 'e' || cp[1] == 'E')) {
|
||||
++cp;
|
||||
}
|
||||
res += *cp;
|
||||
if (*cp == '0' && (cp[1] == 'e' || cp[1] == 'E')) {
|
||||
++cp;
|
||||
}
|
||||
res += *cp;
|
||||
}
|
||||
return res;
|
||||
};
|
||||
|
|
@ -1841,7 +1841,7 @@ sprintf (const char *f, const std::vector <tl::Variant> &vv, unsigned int a0)
|
|||
}
|
||||
if (a < vv.size ()) {
|
||||
#if defined(_STLPORT_VERSION) && _STLPORT_VERSION == 0x521 && defined(_MSC_VER)
|
||||
os << format_sci_stlport_fix (vv [a].to_double (), os.precision (), os.flags ()).c_str ();
|
||||
os << format_sci_stlport_fix (vv [a].to_double (), os.precision (), os.flags ()).c_str ();
|
||||
#else
|
||||
os << vv [a].to_double ();
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue