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
-- 
Lubuntu-users mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/lubuntu-users

Reply via email to