hi PCMAN,

i add these lines(and one delcare in .h) to mainwindow.cpp for support 
path-entry focusing shortcuts
.
void MainWindow::keyReleaseEvent(QKeyEvent *event) {
    
    Qt::Key key = static_cast<Qt::Key>(event->key());
    Qt::KeyboardModifiers modifiers = event->modifiers();
    if((modifiers == Qt::ControlModifier && key == Qt::Key_L) ||
       (modifiers == Qt::AltModifier && key == Qt::Key_D)) {
        
        pathEntry->setFocus();
        pathEntry->selectAll();
    }
}

,and BTW, console arguments doesn't work, i add these lines
for my very own use:
    for (int i = 1; i < argc; ++i) {
      if(strcmp(argv[1],"--desktop") == 0)
        desktop = true;
      else if(strcmp(argv[1],"--daemon-mode") == 0)
        daemon_mode = true;
    }
#which should be "daemon_mode" not "daemon" in code it says.

regards,
AKar
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Lxde-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to