Changeset View
Changeset View
Standalone View
Standalone View
kcms/cursortheme/kcmcursortheme.cpp
Show First 20 Lines • Show All 328 Lines • ▼ Show 20 Line(s) | 324 | names << "X_cursor" << "right_ptr" << "hand1" | |||
---|---|---|---|---|---|
329 | << "right_side" << "bottom_right_corner" << "bottom_side" | 329 | << "right_side" << "bottom_right_corner" << "bottom_side" | ||
330 | << "bottom_left_corner" << "left_side" << "question_arrow" | 330 | << "bottom_left_corner" << "left_side" << "question_arrow" | ||
331 | << "pirate"; | 331 | << "pirate"; | ||
332 | 332 | | |||
333 | foreach (const QString &name, names) { | 333 | foreach (const QString &name, names) { | ||
334 | XFixesChangeCursorByName(QX11Info::display(), theme->loadCursor(name, size), QFile::encodeName(name)); | 334 | XFixesChangeCursorByName(QX11Info::display(), theme->loadCursor(name, size), QFile::encodeName(name)); | ||
335 | } | 335 | } | ||
336 | updateSizeComboBox(); | 336 | updateSizeComboBox(); | ||
337 | emit themeApplied(); | ||||
337 | return true; | 338 | return true; | ||
338 | #else | 339 | #else | ||
339 | Q_UNUSED(theme) | 340 | Q_UNUSED(theme) | ||
340 | return false; | 341 | return false; | ||
341 | #endif | 342 | #endif | ||
342 | } | 343 | } | ||
343 | 344 | | |||
344 | int CursorThemeConfig::cursorSizeIndex(int cursorSize) const | 345 | int CursorThemeConfig::cursorSizeIndex(int cursorSize) const | ||
▲ Show 20 Lines • Show All 272 Lines • Show Last 20 Lines |