better use of API, no need for 'timeval' in Menu

This commit is contained in:
Mathias Gumz 2011-01-15 21:38:56 +01:00
parent 05a52116df
commit 1f0adef4da

View file

@ -1200,10 +1200,7 @@ void Menu::closeMenu() {
} }
void Menu::startHide() { void Menu::startHide() {
timeval timeout; m_hide_timer.setTimeout(theme()->getDelay() * 1000);
timeout.tv_sec = 0;
timeout.tv_usec = theme()->getDelay() * 1000; // transformed to usec
m_hide_timer.setTimeout(timeout);
m_hide_timer.start(); m_hide_timer.start();
} }