QTfrontend/ui/widget/SmartLineEdit.cpp
changeset 6218 999215ca87d7
parent 6217 ef53ba841791
child 6616 f77bb02b669f
equal deleted inserted replaced
6217:ef53ba841791 6218:999215ca87d7
   197             if (cmd.startsWith(matchMe, Qt::CaseInsensitive))
   197             if (cmd.startsWith(matchMe, Qt::CaseInsensitive))
   198             {
   198             {
   199                 match = cmd;
   199                 match = cmd;
   200 
   200 
   201                 // move match to end so next time new matches will be preferred
   201                 // move match to end so next time new matches will be preferred
   202 				if (m_cmds->removeAll(cmd) > 0)
   202                 m_cmds->removeAll(cmd);
   203                     m_cmds->append(cmd);
   203                 m_cmds->append(cmd);
   204 
   204 
   205                 break;
   205                 break;
   206             }
   206             }
   207         }
   207         }
   208     }
   208     }
   216             {
   216             {
   217                 match = nick;
   217                 match = nick;
   218                 isNick = true;
   218                 isNick = true;
   219 
   219 
   220                 // move match to end so next time new matches will be prefered
   220                 // move match to end so next time new matches will be prefered
   221 				if (m_nicks->removeAll(nick) > 0)
   221                 m_nicks->removeAll(nick);
   222                     m_nicks->append(nick);
   222                 m_nicks->append(nick);
   223 
   223 
   224                 break;
   224                 break;
   225             }
   225             }
   226         }
   226         }
   227     }
   227     }