/////////////////////////////////////////////////////////////////////////////////////////
    // Command::revert
    //! Reverts the command
    //! 
    //! \throw logic_error - Command cannot be reverted
    /////////////////////////////////////////////////////////////////////////////////////////
    virtual void revert() 
    {
      // Verify
      if (permanent())
        throw logic_error(HERE, "Command cannot be reverted");

      // Revert
      RevertFn();
    }
예제 #2
0
void KWindowInfo::permanent( const QString &text )
{
#ifdef Q_WS_X11
    oldMiniIcon = KWin::icon( win->winId(), 16, 16, true );
    oldIcon = KWin::icon( win->winId(), 34, 34, false );
    if ( oldIcon.isNull() )
	oldIcon = KWin::icon( win->winId(), 32, 32, true );
#endif

    permanent( text, oldIcon );
}