Mixxx

/home/maxime/Projets/Mixxx/1.10/mixxx/src/script/macrolistitem.cpp

Go to the documentation of this file.
00001 #include "macrolistitem.h"
00002 
00003 MacroListItem::MacroListItem(MacroList* parent, Macro* macro) :
00004         Q3ListViewItem(parent, "Dummy") {
00005 
00006         m_macro = macro;
00007                 
00008         setText(0, macro->getName());
00009         setRenameEnabled(0, true);
00010 }
00011 
00012 MacroListItem::~MacroListItem() {
00013 }
00014 
00015 void MacroListItem::okRename(int col) {
00016         Q3ListViewItem::okRename(col);
00017         m_macro->setName(text(0));
00018 }
00019 
00020 Macro* MacroListItem::getMacro() {
00021         return m_macro;
00022 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines