PCManFM Qt 0.1.0 released.
akarchen at gmail.com
akarchen at gmail.com
Wed Apr 17 09:55:06 UTC 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/lubuntu-users/attachments/20130417/3d944ab3/attachment.html>
More information about the Lubuntu-users
mailing list