KDevelop KDE application的问题
我用kdevelop生成一个KDE Application
看其中main.cpp的代码
if (app.isRestored())
{
RESTORE(KDEApp);
}
else
。。。
bool KApplication::isRestored ( ) const [inline]
Is the application restored from the session manager?
首先我想问一下这里的session是指的什么?
还有restore怎么理解、翻译?
既然他restored了为什么还要调用RESTORE(KDEApp);
#define RESTORE(type) { int n = 1;\
while (KMainWindow::canBeRestored(n)){\
(new type)->restore(n);\
n++;}}
626