\documentclass[12pt,a4paper]{article}
\usepackage{ctex}
\usepackage{listings}
\usepackage{xcolor}
\begin{document}
Qt中的等级观念

\lstset{language=c++,breaklines=true,numbers=left,xleftmargin=0em,xrightmargin=0em}
\begin{lstlisting}

/*!
\internal

File was visible before, but now should NOT be

*WARNING* this will change the visible count
*/
void QFileSystemModelPrivate::removeVisibleFile(QFileSystemNode *parentNode, int vLocation)
{
Q_Q(QFileSystemModel);
if (vLocation == -1)
return;
QModelIndex parent = index(parentNode);
bool indexHidden = isHiddenByFilter(parentNode, parent);
if (!indexHidden)
q->beginRemoveRows(parent, translateVisibleLocation(parentNode, vLocation), translateVisibleLocation(parentNode, vLocation));
parentNode->children.value(parentNode->visibleChildren.at(vLocation))->isVisible = false;
parentNode->visibleChildren.removeAt(vLocation);
if (!indexHidden)
q->endRemoveRows();
}

 

  


\end{lstlisting}

\end{document}

相关文章:

  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
  • 2021-09-11
  • 2021-05-24
猜你喜欢
  • 2022-12-23
  • 2021-06-15
  • 2021-08-06
  • 2022-12-23
  • 2021-05-24
  • 2021-06-14
  • 2022-12-23
相关资源
相似解决方案