I think it's OK to lose your temper one in a while. It's natural, and it's really a basic form of communication. We get mad when something pushes us way beyond what we feel is reasonable. At some level, I think your daughter learned what kind of thing will really make dad unhappy. She didn't know that before, but now she has an inkling of it, and that's good. I helps with her understanding you, people in general, and how to be a part of a family. As other posts said, as long as it doesn't become a habit, no harm and probably some help done.
One other thing-- As parents, I think it's our duty to remember to take care of ourselves also. It's good to be devoted to your kids, no doubt. But if we give 100% of our attention and energy to them and get stressed out, who does that help? If you were a kid, which would your rather have: A) All of mom and dad's attention, but they're stressed-out, exhausted, and tend to be cranky? Or B) less than all of mom and dad's attention, but they're rested, relaxed, and cheerful? We have to take care of ourselves, at least sometimes, in order to be fit to take care of anyone else.