• 6001阅读
  • 1回复

关于高亮显示字符串中多行注释的问题! [复制链接]

上一主题 下一主题
离线0354030w
 

只看楼主 倒序阅读 楼主  发表于: 2010-07-22
看了Demo文本高亮显示的例子,看到多行注释的时候就看不懂了,主要是两个函数
int QSyntaxHighlighter::previousBlockState () const   [protected]
Returns the end state of the text block previous to the syntax highlighter's current block. If no value was previously set, the returned value is -1.

int QSyntaxHighlighter::currentBlockState () const   [protected]
Returns the state of the current text block. If no value is set, the returned value is -1.

我想知道这两个函数是怎么个意思?返回前一个文本块的状态和当前文本块的状态?谁能解释一下哈!还有文本块是啥意思!
离线xtfllbl

只看该作者 1楼 发表于: 2010-07-23
像这种返回状态的函数你用一下不就知道了,反正没什么功能,就看看状态而已。
上海欢迎您
快速回复
限100 字节
 
上一个 下一个